def query_order(self, internal_order: InternalOrder) -> bool: """""" f = OesQryOrdFilterT() f.mktId = EXCHANGE_VT2OES[internal_order.vt_order.exchange] f.clSeqNo = internal_order.order_id ret = OesApi_QueryOrder(self._env.qryChannel, f, self.on_query_order) return ret >= 0
def query_orders(self) -> bool: """""" f = OesQryOrdFilterT() ret = OesApi_QueryOrder(self._env.qryChannel, f, self.on_query_orders ) return ret >= 0