97ed5861ad34a2baf73d40b90d954b2ccb54bd49,QUANTAXISTrade/QA_trade_stock/QA_Trade_stock_api.py,QA_Stock,QA_trade_stock_get_cash,#QA_Stock#Any#,65
Before Change
self.nCategory = 0
errinfo, self.result = client.QueryData(self.nCategory)
if errinfo != "":
print(errinfo)
else:
//print(self.result)
return self.result
def QA_trade_stock_get_stock(self, client):
//股份
self.nCategory = 1
After Change
self.nCategory = 0
_errinfo, self.result = _client.QueryData(self.nCategory)
if _errinfo != "":
return (errinfo)
else:
// print(self.result)
accounts = self.result.split("\n")[1].split("\t")
account={}
account["account_id"] = accounts[0]
account["available"] = accounts[3]
account["freeze"] = accounts[4]
account["on_way"] = accounts[5]
account["withdraw"] = accounts[6]
return account
def QA_trade_stock_get_stock(self, client):
// 股份
self.nCategory = 1
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 97ed5861ad34a2baf73d40b90d954b2ccb54bd49
Time: 2017-06-03
Author: yutiansut@qq.com
File Name: QUANTAXISTrade/QA_trade_stock/QA_Trade_stock_api.py
Class Name: QA_Stock
Method Name: QA_trade_stock_get_cash
Project Name: bokeh/bokeh
Commit Name: f1bc5b054e29f6d8e948fe7222936a2b0a975535
Time: 2019-10-07
Author: mattpap@gmail.com
File Name: bokeh/model.py
Class Name: Model
Method Name: ref
Project Name: eth-cscs/reframe
Commit Name: 64445594489d29e36a9077622b3cbb012c99662a
Time: 2020-04-03
Author: maxime.boissonneault@calculquebec.ca
File Name: reframe/core/pipeline.py
Class Name: RegressionTest
Method Name: supports_system