try:
// 做一些容错处理
res = [event.broker[i].query_orders(
event.account_cookie[i], "") for i in range(len(event.account_cookie))]
res = pd.concat(res, axis=0) if len(
res) > 0 else None
After Change
// result = event.broker.query_deal
// time.sleep(1)
if self.if_start_orderquery:
res = [self.monitor[account].query_orders(
account.account_cookie, "filled") for account in list(self.monitor.keys())]
try:
//res=[pd.DataFrame() if not isinstance(item,pd.DataFrame) else item for item in res]