51569a4ed9579c6566846e0e36ffe90205cbd82c,QUANTAXIS/QAARP/QAUser.py,QA_User,get_account,#QA_User#Any#Any#,369
Before Change
try:
return self.portfolio_list[portfolio_cookie][account_cookie]
except:
return None
After Change
// portfolio_cookie=item
// )
try:
return self.get_portfolio(portfolio_cookie).get_account(account_cookie)
except:
return None
def get_portfolio(self, portfolio_cookie: str):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 51569a4ed9579c6566846e0e36ffe90205cbd82c
Time: 2019-07-24
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAARP/QAUser.py
Class Name: QA_User
Method Name: get_account
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 51569a4ed9579c6566846e0e36ffe90205cbd82c
Time: 2019-07-24
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAARP/QAUser.py
Class Name: QA_User
Method Name: new_portfolio
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 51569a4ed9579c6566846e0e36ffe90205cbd82c
Time: 2019-07-24
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAARP/QAUser.py
Class Name: QA_User
Method Name: __getitem__