8ca794b6ee53c082d061af55256c2a09c0fbf179,QUANTAXIS/QAMarket/QABacktestBroker.py,QA_BacktestBroker,query_orders,#QA_BacktestBroker#Any#Any#,210

Before Change


    def query_orders(self, account, status=""):

        if status == "":
            return pd.DataFrame(list(self.deal_message.values()), columns=self.orderstatus_headers).set_index(["account_cookie", "realorder_id"])
        elif status == "filled":
            pass
        elif status == "open":

After Change


        if status == "":
            return self.dealer.deal_df.query("account_cookie=="{}"".format(account)).loc[:,self.orderstatus_headers].set_index(["account_cookie", "realorder_id"])
        elif status == "filled":
            print("gilled")
            return self.dealer.deal_df.query("account_cookie=="{}"".format(account)).loc[:,self.dealstatus_headers].set_index(["account_cookie", "realorder_id"])
        elif status == "open":
            pass
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 8ca794b6ee53c082d061af55256c2a09c0fbf179
Time: 2018-08-13
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAMarket/QABacktestBroker.py
Class Name: QA_BacktestBroker
Method Name: query_orders


Project Name: WZBSocialScienceCenter/tmtoolkit
Commit Name: 9aa05168fbd8c188c32974d51ee7057e4b5f2e65
Time: 2019-03-22
Author: markus.konrad@wzb.eu
File Name: examples/preproc_gen_dtm_en.py
Class Name:
Method Name:


Project Name: calico/basenji
Commit Name: a535a61e38a5cbc623641d900ec30cc1f0c28ca1
Time: 2019-06-24
Author: geoff.fudenberg@gmail.com
File Name: bin/basenji_data_4C_read.py
Class Name:
Method Name: main


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: fc4a061945867827914e43c4ba55151991b3a6d2
Time: 2018-06-01
Author: 604829050@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery_Advance.py
Class Name:
Method Name: QA_fetch_stock_realtime_adv