a3b39f9e6e7e1b33a3eb9919923d939430b60b86,QUANTAXIS/QAFetch/QATdx.py,,__QA_fetch_get_stock_transaction,#Any#Any#Any#Any#,290
Before Change
if len(data_) < 2:
return __QA_fetch_get_stock_transaction(code, day, 0, api)
else:
return data_
def QA_fetch_get_stock_transaction(code, start, end, retry=2, ip=best_ip, port=7709):
api = TdxHq_API()
After Change
def __QA_fetch_get_stock_transaction(code, day, retry, api):
data_ = pd.concat([api.to_df(api.get_history_transaction_data(
__select_market_code(code), code, (20 - i) * 800, 800, QA_util_date_str2int(day))) for i in range(21)], axis=0)
for _ in range(retry):
if len(data_) < 2:
return __QA_fetch_get_stock_transaction(code, day, 0, api)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
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_transaction
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_min