48290e9520adc01a1199928ed8f48f6705fbcd41,QUANTAXIS/QAFetch/QAQuery_Advance.py,,QA_fetch_stock_min_adv,#Any#Any#Any#Any#Any#Any#,81
Before Change
if len(end) == 10:
end = "{} 15:00:00".format(end)
return QA_DataStruct_Stock_min(QA_fetch_stock_min(code, start, end, format="pd", frequence=frequence).set_index(["datetime", "code"], drop=if_drop_index))
def QA_fetch_stock_day_full_adv(date):
"返回全市场某一天的数据"
After Change
print("💢 Error QA_fetch_stock_min_adv parameter code=%s , start=%s, end=%s is equal, should have time span! "%(code,start,end))
return None
res = QA_fetch_stock_min(code, start, end, format="pd", frequence=frequence)
if res is None:
print("💢 Error QA_fetch_stock_min_adv parameter code=%s , start=%s, end=%s frequence=%s call QA_fetch_stock_min return None"%(code,start,end,frequence))
return None
else:
res_set_index = res.set_index(["datetime", "code"],drop=if_drop_index)
if res_set_index is None:
print("💢 Error QA_fetch_stock_min_adv set index "datetime, code" return None")
return None
else:
return QA_DataStruct_Stock_min(res_set_index)
def QA_fetch_stock_day_full_adv(date):
"返回全市场某一天的数据"
return QA_DataStruct_Stock_day(QA_fetch_stock_full(date, "pd").set_index(["date", "code"], drop=False))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 48290e9520adc01a1199928ed8f48f6705fbcd41
Time: 2018-05-31
Author: 604829050@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery_Advance.py
Class Name:
Method Name: QA_fetch_stock_min_adv
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: fc4a061945867827914e43c4ba55151991b3a6d2
Time: 2018-06-01
Author: 604829050@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery_Advance.py
Class Name:
Method Name: QA_fetch_index_day_adv
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: fc4a061945867827914e43c4ba55151991b3a6d2
Time: 2018-06-01
Author: 604829050@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery_Advance.py
Class Name:
Method Name: QA_fetch_index_min_adv