fix onetoken order.status

fix onetoken order.status
This commit is contained in:
xldistance 2019-06-30 12:06:59 +08:00 committed by GitHub
parent 2bab750b96
commit 0fae58f333
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -659,7 +659,7 @@ class OnetokenTradeWebsocketApi(WebsocketClient):
gateway_name=self.gateway_name
)
if order_data["canceled_time"]:
if order_data["status"] in ("withdrawn","part-deal-withdrawn"):
order.status = Status.CANCELLED
else:
if order.traded == order.volume: