a3b39f9e6e7e1b33a3eb9919923d939430b60b86,QUANTAXIS/QAFetch/QATdx.py,,QA_fetch_get_stock_latest,#Any#Any#Any#,157

Before Change


                9, market_code, item, 0, 1))
            __data["code"] = item
            data = data.append(__data)
        data["date"] = data["datetime"].apply(lambda x: x[0:10])
        data["date_stamp"] = data["date"].apply(
            lambda x: QA_util_date_stamp(x))
        data["date"] = pd.to_datetime(data["date"])
        data.set_index("date", drop=False, inplace=True)
        data["date"] = data["date"].apply(lambda x: str(x)[0:10])
        return data.drop(["year", "month", "day", "hour",
                          "minute", "datetime"], axis=1)

After Change


    with api.connect(ip, port):
        data = pd.concat([api.to_df(api.get_security_bars(
            9, __select_market_code(item), item, 0, 1)).assign(code=item) for item in code], axis=0)
        return data\
            .assign(date=pd.to_datetime(data["datetime"]
                                        .apply(lambda x: x[0:10])), date_stamp=data["datetime"]
                    .apply(lambda x: QA_util_date_stamp(str(x[0:10]))))\
            .set_index("date", drop=False)\
            .drop(["year", "month", "day", "hour", "minute", "datetime"], axis=1)


def QA_fetch_get_stock_realtime(code=["000001", "000002"], ip=best_ip, port=7709):
    api = TdxHq_API()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 18

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: a3b39f9e6e7e1b33a3eb9919923d939430b60b86
Time: 2017-09-01
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: QA_fetch_get_stock_latest


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: a3b39f9e6e7e1b33a3eb9919923d939430b60b86
Time: 2017-09-01
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: QA_fetch_get_stock_latest


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 3cb00ac929a447e8a5bec0d684ed408008d9cc33
Time: 2017-09-02
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: QA_fetch_get_stock_day


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 75083500446154a3ee3a394a175a5376ec53af35
Time: 2017-09-02
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: QA_fetch_get_stock_day