d262a0d3c567cf0543760bd238f67411acb697c2,QUANTAXIS/QAFetch/QAhuobi.py,,QA_fetch_huobi_symbols,#,99

Before Change


            print("Retry get_exchange_info //{}".format(retries - 1))
            print(e.error_code)
            print(e.error_message)
            time.sleep(0.5)

    // 转换成DICT,mongodb不接受专有类型
    symbol_list = []
    for symbol in exchange_info.symbol_list:

After Change


    if (retries == 0):
        msg_dict = json.loads(req.content)
        if (("status" in msg_dict) and (msg_dict["status"] == "ok") and ("data" in msg_dict)):
            if len(msg_dict["data"]) == 0:
                return []
            for symbol in msg_dict["data"]:
                // 只导入上架交易对
                if (symbol["state"] == "online"):
                    datas.append(symbol)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: d262a0d3c567cf0543760bd238f67411acb697c2
Time: 2020-02-26
Author: 11652964@qq.com
File Name: QUANTAXIS/QAFetch/QAhuobi.py
Class Name:
Method Name: QA_fetch_huobi_symbols


Project Name: keras-team/autokeras
Commit Name: 4b83c1070cebd0d996ba2cc69779dcb66d5d0032
Time: 2018-05-29
Author: jhfjhfj1@gmail.com
File Name: autokeras/classifier.py
Class Name: ClassifierBase
Method Name: fit


Project Name: akkana/scripts
Commit Name: feb5a2fe3e6b32901b2ab80dd660d4c1640ba4aa
Time: 2019-06-28
Author: akkana@shallowsky.com
File Name: newreads.py
Class Name:
Method Name: lookup_books