8b8400882e2e89e0efbd19ee7d1f3cc9a56ff351,QUANTAXIS/QAFetch/QAhuobi.py,,QA_fetch_huobi_kline_subscription,#Any#Any#Any#Any#Any#,245

Before Change


    reqParams = {}
    reqParams["from"] = end_time - FREQUENCY_SHIFTING[frequency]
    reqParams["to"] = end_time
    if (reqParams["to"] > QA_util_datetime_to_Unix_timestamp()):
        // 出现“未来”时间,一般是默认时区设置错误造成的
        raise Exception(
            "A unexpected \"Future\" timestamp got, Please check self.missing_data_list_func param \"tzlocalize\" set"
        )

    data = []
    requested_counter = 1
    sub_client = QA_Fetch_Huobi(
        callback_save_data_func=callback_save_data_func,

After Change


    )
    datas = list()
    while (reqParams["to"] > start_time):
        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["to"]),
                    QA_util_print_timestamp(
                        QA_util_datetime_to_Unix_timestamp()
                    )
                )
            )

        retries = 1
        while (retries != 0):
            try:
                frame = sub_client.run_request_historical_kline(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 8b8400882e2e89e0efbd19ee7d1f3cc9a56ff351
Time: 2020-02-28
Author: 11652964@qq.com
File Name: QUANTAXIS/QAFetch/QAhuobi.py
Class Name:
Method Name: QA_fetch_huobi_kline_subscription


Project Name: elfi-dev/elfi
Commit Name: b19e3080dba989e2e7e08c74877f8396790f83d2
Time: 2016-12-05
Author: jarno.lintusaari@aalto.fi
File Name: elfi/graph.py
Class Name: Node
Method Name: remove_parent


Project Name: ray-project/ray
Commit Name: 1d532d1cb8b829bdf7055a22c206032ca0b72e46
Time: 2020-04-02
Author: rkooo567@gmail.com
File Name: python/ray/tests/test_webui.py
Class Name:
Method Name: test_get_webui