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:

After Change



        data = QA_fetch_kline(symbol_info["symbol"],
                              time.mktime(start_time.timetuple()), time.mktime(end.timetuple()), frequency)
        if len(data) == 0:
            QA_util_log_info("SYMBOL {} from {} to {} has no data".format(
                symbol_info["symbol"], start_time, end))
            continue
        col.insert_many(data)


def QA_SU_save_binance_1min():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: RaRe-Technologies/gensim
Commit Name: 680de8d4f35325e7486c07c4e06422929e826b57
Time: 2019-01-10
Author: __Singleton__@hackerdom.ru
File Name: gensim/corpora/lowcorpus.py
Class Name: LowCorpus
Method Name: line2doc


Project Name: samuelclay/NewsBlur
Commit Name: 89089ddbc25aa7c1063b9028a08fed5af431617d
Time: 2015-05-18
Author: samuel@ofbrooklyn.com
File Name: apps/profile/tasks.py
Class Name: PremiumExpire
Method Name: run