43460d35354b29171d1b346ad65d9dd90e54472b,QUANTAXIS/QASU/save_binance.py,,QA_SU_save_binance,#Any#,13

Before Change


        ref = col.find({"symbol":symbol_info["symbol"]})

        if ref.count()>0:
            start_date = ref[ref.count()-1]["date"]
            QA_util_log_info("UPDATE_SYMBOL \n Trying updating {} from {} to {}".format(
                symbol_info["symbol"], start_date, end))
        else:
            start_time = BINANCE_MIN_DATE

After Change



        if ref.count() > 0:
            start_stamp = ref.next()["start_time"]/1000
            start_time = datetime.datetime.fromtimestamp(start_stamp)
            QA_util_log_info("UPDATE_SYMBOL \n Trying updating {} from {} to {}".format(
                symbol_info["symbol"], start_time, end))
        else:
            start_time = BINANCE_MIN_DATE
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 43460d35354b29171d1b346ad65d9dd90e54472b
Time: 2018-06-14
Author: 157747074@qq.com
File Name: QUANTAXIS/QASU/save_binance.py
Class Name:
Method Name: QA_SU_save_binance


Project Name: CyberReboot/poseidon
Commit Name: d0293ba1864cf4acc055d323554128f580db2f97
Time: 2018-03-15
Author: clewis@iqt.org
File Name: api/app/data.py
Class Name: Network
Method Name: get_dataset


Project Name: home-assistant/home-assistant
Commit Name: c8cce7607c5c6482f42a6ed0e91d209c9f56953e
Time: 2020-05-09
Author: guillempages@users.noreply.github.com
File Name: homeassistant/components/bluetooth_le_tracker/device_tracker.py
Class Name:
Method Name: setup_scanner