ce712042a249d95ba312e637c20443a0d68d748b,QUANTAXIS/QASU/save_tushare.py,,QA_save_stock_day_all,#,12
Before Change
data=ts.get_k_data(i,start=dates)
data_json=json.loads(data.to_json(orient="records"))
coll=pymongo.MongoClient().quantaxis.stock_day
coll.insert_many(data_json)
After Change
for i in df.index:
print(i)
data=ts.get_hist_data(i)
try:
data_json=json.loads(data.to_json(orient="records"))
coll=pymongo.MongoClient().quantaxis.stock_day
coll.insert_many(data_json)
except:
print("none data")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: ce712042a249d95ba312e637c20443a0d68d748b
Time: 2017-04-20
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: ce712042a249d95ba312e637c20443a0d68d748b
Time: 2017-04-20
Author: yutiansut@qq.com
File Name: test/test_tushare.py
Class Name:
Method Name:
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 345d2d76ab4faa5310c5fff419a47a7aa8dc4dcb
Time: 2017-06-14
Author: yutiansut@qq.com
File Name: QUANTAXIS/QASU/update_tushare.py
Class Name:
Method Name: QA_update_stock_day_all