def on_stop_order(self, stop_order: StopOrder):
if stop_order.status == StopOrder.status.WAITING:
return
for buf_orderids in [self.buy_vt_orderids, self.sell_vt_orderids, self.short_vt_orderids,
self.cover_vt_orderids]:
if stop_order.stop_orderid in buf_orderids:
buf_orderids.remove(stop_order.stop_orderid)
我知道停止单可以这样处理,但是限价单要在哪个方法里面进行判断?on_trade还是on_order?状态怎么判断?