ae5e8cd85d53879a3ab3d603b2d9db5289a30af2,QUANTAXIS/QAARP/QAAccountPro.py,QA_AccountPRO,get_position,#QA_AccountPRO#Any#,218
Before Change
portfolio_cookie=self.portfolio_cookie,
account_cookie=self.account_cookie,
auto_reload=False))
if pos.market_type == self.market_type:
self.positions[code] = pos
return pos
else:
print("Current AccountPro {} is {} doesnot support {}".format(
self.account_cookie, self.market_type, pos.market_type))
@property
def hold_available(self):
pass
After Change
[type] -- [description]
try:
return self.positions.loc[code].to_dict()
except KeyError:
return {"volume_long": 0, "volume_short": 0, "volume_long_frozen":0, "volume_short_frozen": 0}
def get_position_with_pos(self, code, pos_id):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: ae5e8cd85d53879a3ab3d603b2d9db5289a30af2
Time: 2019-10-21
Author: barrettyip@gmail.com
File Name: QUANTAXIS/QAARP/QAAccountPro.py
Class Name: QA_AccountPRO
Method Name: get_position
Project Name: Pinafore/qb
Commit Name: 2f74f04253d5a90459401d0f09ea0559d50371a0
Time: 2016-06-25
Author: ski.rodriguez@gmail.com
File Name: util/guess.py
Class Name: GuessList
Method Name: check_recall
Project Name: descarteslabs/descarteslabs-python
Commit Name: 161492d4963cb651ee3236d696699c8e8fc76ba4
Time: 2019-10-23
Author: gabe@descarteslabs.com
File Name: descarteslabs/workflows/interactive/layer.py
Class Name: WorkflowsLayer
Method Name: make_url