0b8628de208c79bf6ae2efd877ffeb80e819b63d,QUANTAXIS/QAARP/QAAccountPro.py,QA_AccountPRO,get_position,#QA_AccountPRO#Any#,1804

Before 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):

After Change


            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):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 0b8628de208c79bf6ae2efd877ffeb80e819b63d
Time: 2019-10-21
Author: barrettyip@gmail.com
File Name: QUANTAXIS/QAARP/QAAccountPro.py
Class Name: QA_AccountPRO
Method Name: get_position


Project Name: pantsbuild/pants
Commit Name: c7e6e4cfd90d2d05bb9c9dffd519b32e9a1f15f6
Time: 2015-10-23
Author: benjyw@gmail.com
File Name: src/python/pants/reporting/html_reporter.py
Class Name: HtmlReporter
Method Name: end_workunit


Project Name: pantsbuild/pants
Commit Name: c7e6e4cfd90d2d05bb9c9dffd519b32e9a1f15f6
Time: 2015-10-23
Author: benjyw@gmail.com
File Name: src/python/pants/reporting/html_reporter.py
Class Name: HtmlReporter
Method Name: start_workunit


Project Name: polyaxon/polyaxon
Commit Name: 91e7eb2a61473531cc5dcdd378c8bd5dc03a4554
Time: 2017-12-14
Author: mouradmourafiq@gmail.com
File Name: polyaxon_cli/cli/version.py
Class Name:
Method Name: version