c91ee1c0b3dbeeab4b09a691d3441a7e72a136ff,QUANTAXIS/QAFetch/QATdx.py,,QA_fetch_get_stock_realtime,#Any#Any#Any#,75

Before Change


    with api.connect(ip, port):
        __data = api.to_df(api.get_security_quotes([(market_code, code)]))
        data = __data[["code", "open", "high", "low", "price"]]
        data = data.rename(columns={"price": "close"}, inplace=True)
        return data


def QA_fetch_get_index_day(code, start_date, end_date, ip="119.147.212.81", port=7709):

After Change


    __data=pd.DataFrame()
    with api.connect(ip, port):
        code=[code] if type(code) is str else code
        for id_ in range(int(len(code)/80)+1):
            __data = __data.append(api.to_df(api.get_security_quotes(
                [(__select_market_code(x),x) for x in code[80*id_:80*(id_+1)]])))
            __data["datetime"]=datetime.datetime.now()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: c91ee1c0b3dbeeab4b09a691d3441a7e72a136ff
Time: 2017-08-25
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: QA_fetch_get_stock_realtime


Project Name: pfnet/optuna
Commit Name: fd633602af08b199d87d222a8cfb85acea17b55a
Time: 2019-09-11
Author: suehiro619@gmail.com
File Name: optuna/visualization.py
Class Name:
Method Name: _get_intermediate_plot


Project Name: EpistasisLab/tpot
Commit Name: 2ab8c1444facbd46df8767a5badda5b9f1a50c29
Time: 2016-08-01
Author: supacoofoo@gmail.com
File Name: tpot/tpot.py
Class Name:
Method Name: main