04416f58f1d6b13bbdd833ad516718503637ce9a,QUANTAXIS/QAFetch/QACrawler.py,,QA_fetch_get_sz_margin,#Any#,52
Before Change
if date in trade_date_sse:
return pd.read_excel(_sz_url.format(date)).assign(date=date).assign(sse="sz")
//http://data.eastmoney.com/zjlx/002433.html
def QA_fetch_zjlx(code=None):
//获取资金流向
After Change
if date in trade_date_sse:
sz_url = _sz_url.format(date, random.random())
data = pd.read_excel(sz_url).assign(date=date,sse="sz")
data.columns=["code","name","leveraged_buyout","leveraged_balance","margin_sell","margin_left","margin_balance","totalbalance","date","sse"]
data.code = data.code.apply(lambda x: ("00000"+str(x))[-6:])
return data
else:
pass
def QA_fetch_get_margin_all(date):
return pd.concat([QA.QA_fetch_get_sh_margin(date), QA.QA_fetch_get_sz_margin(date)])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 04416f58f1d6b13bbdd833ad516718503637ce9a
Time: 2021-01-02
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QACrawler.py
Class Name:
Method Name: QA_fetch_get_sz_margin
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 0d60d295fd0674e67aae7fb0c7f8c255df155a87
Time: 2019-09-11
Author: huchen@szu.edu.cn
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: __QA_fetch_get_index_transaction
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 0d60d295fd0674e67aae7fb0c7f8c255df155a87
Time: 2019-09-11
Author: huchen@szu.edu.cn
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: __QA_fetch_get_stock_transaction