[Del] remove useless code

This commit is contained in:
nanoric 2019-03-08 07:28:50 -04:00
parent eb5aac2595
commit 7eaa0c19f6

View File

@ -398,11 +398,6 @@ class OesTdApi:
return 1
def query_stock(self, ) -> bool:
""""""
# Thread(target=self._query_stock, ).start()
return self._query_stock()
def _query_stock(self, ) -> bool:
""""""
f = OesQryStockFilterT()
ret = OesApi_QueryStock(self._env.qryChannel, f, self.on_query_stock)
@ -598,12 +593,6 @@ class OesTdApi:
OesApi_SendOrderCancelReq(self._env.ordChannel,
oes_req)
def schedule_query_order(self, internal_order: InternalOrder) -> Thread:
""""""
th = Thread(target=self.query_order, args=(internal_order,))
th.start()
return th
def query_order(self, internal_order: InternalOrder) -> bool:
""""""
f = OesQryOrdFilterT()
@ -623,7 +612,7 @@ class OesTdApi:
""""""
data: OesOrdCnfmT = cast.toOesOrdItemT(body)
i = self._td.get_order(data.clSeqNo)
i = self.get_order(data.clSeqNo)
vt_order = i.vt_order
vt_order.status = STATUS_OES2VT[data.ordStatus]
vt_order.volume = data.ordQty - data.canceledQty