1d23b992191fde5403c1927efd339516fbee1a8c,QUANTAXIS/QAFetch/QABitfinex.py,,QA_fetch_bitfinex_kline_min,#Any#Any#Any#Any#Any#,296
Before Change
if ((reqParams["from"] > QA_util_datetime_to_Unix_timestamp())) or \
((reqParams["from"] > reqParams["to"])):
// 出现“未来”时间,一般是默认时区设置,或者时间窗口滚动前移错误造成的
raise Exception(
"A unexpected \"Future\" timestamp got, Please check self.missing_data_list_func param \"tzlocalize\" set. More info: {:s}@{:s} at {:s} but current time is {}"
.format(
symbol,
frequency,
QA_util_print_timestamp(reqParams["from"]),
QA_util_print_timestamp(
QA_util_datetime_to_Unix_timestamp()
)
)
)
klines = QA_fetch_okex_kline_with_auto_retry(
symbol,
reqParams["from"],
After Change
)
)
// 跳到下一个时间段
reqParams["to"] = int(reqParams["from"] - 1)
reqParams["from"] = int(reqParams["from"] - FREQUENCY_SHIFTING[frequency])
continue
klines = QA_fetch_okex_kline_with_auto_retry(
symbol,
reqParams["from"],
reqParams["to"],
frequency,
)
if (klines is None) or \
(len(klines) == 0) or \
("error" in klines):
// 出错放弃
break
reqParams["to"] = int(reqParams["from"] - 1)
reqParams["from"] = int(reqParams["from"] - FREQUENCY_SHIFTING[frequency])
if (callback_func is not None):
frame = format_okex_data_fields(klines, symbol, frequency)
callback_func(frame, OKEx2QA_FREQUENCY_DICT[frequency])
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 17
Instances
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 1d23b992191fde5403c1927efd339516fbee1a8c
Time: 2020-03-24
Author: 11652964@qq.com
File Name: QUANTAXIS/QAFetch/QABitfinex.py
Class Name:
Method Name: QA_fetch_bitfinex_kline_min
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 1d23b992191fde5403c1927efd339516fbee1a8c
Time: 2020-03-24
Author: 11652964@qq.com
File Name: QUANTAXIS/QAFetch/QAOKEx.py
Class Name:
Method Name: QA_fetch_okex_kline
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 1d23b992191fde5403c1927efd339516fbee1a8c
Time: 2020-03-24
Author: 11652964@qq.com
File Name: QUANTAXIS/QAFetch/QABitfinex.py
Class Name:
Method Name: QA_fetch_bitfinex_kline
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 1d23b992191fde5403c1927efd339516fbee1a8c
Time: 2020-03-24
Author: 11652964@qq.com
File Name: QUANTAXIS/QAFetch/QAOKEx.py
Class Name:
Method Name: QA_fetch_okex_kline_min