fix onetoken order.status
fix onetoken order.status
This commit is contained in:
parent
2bab750b96
commit
0fae58f333
@ -659,7 +659,7 @@ class OnetokenTradeWebsocketApi(WebsocketClient):
|
|||||||
gateway_name=self.gateway_name
|
gateway_name=self.gateway_name
|
||||||
)
|
)
|
||||||
|
|
||||||
if order_data["canceled_time"]:
|
if order_data["status"] in ("withdrawn","part-deal-withdrawn"):
|
||||||
order.status = Status.CANCELLED
|
order.status = Status.CANCELLED
|
||||||
else:
|
else:
|
||||||
if order.traded == order.volume:
|
if order.traded == order.volume:
|
||||||
|
Loading…
Reference in New Issue
Block a user