f083111608442549981060baf35e521be8d61af9,QUANTAXIS/QAFetch/QATushare.py,,QA_fetch_get_stock_day,#Any#Any#Any#,32
Before Change
data = QATs.get_k_data(name, startDate, endDate, ktype="D")
data_json = json.loads(data.to_json(orient="records"))
for item in data_json:
item["date_stamp"] = QA_util_date_stamp(item["date"])
return data_json
def QA_fetch_get_stock_realtime():
After Change
def QA_fetch_get_stock_day(name, startDate=None, endDate=None):
if (len(name) != 6):
name = str(name)[0:6]
data = QATs.get_hist_data(str(name), startDate, endDate).sort_index()
data_json = json.loads(data.to_json(orient="records"))
for j in range(0, len(data_json), 1):
data_json[j]["date_stamp"] = QA_util_date_stamp(
list(data.index)[j])
data_json[j]["date"] = list(data.index)[j]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: f083111608442549981060baf35e521be8d61af9
Time: 2017-06-15
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATushare.py
Class Name:
Method Name: QA_fetch_get_stock_day
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 25728831a3b53895bb2bd5076fcd385c1316f94c
Time: 2017-05-30
Author: yutiansut@qq.com
File Name: QUANTAXIS/QASU/save_tushare.py
Class Name:
Method Name: QA_save_stock_day_all
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 3d68ed177e8fbdc01c00bc49117d5ae25769976f
Time: 2017-08-21
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAUtil/QADate.py
Class Name:
Method Name: QA_util_time_stamp