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