From 0fae58f333f63a8da7b0d8729140c41c11628d62 Mon Sep 17 00:00:00 2001 From: xldistance <819873074@qq.com> Date: Sun, 30 Jun 2019 12:06:59 +0800 Subject: [PATCH] fix onetoken order.status fix onetoken order.status --- vnpy/gateway/onetoken/onetoken_gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/gateway/onetoken/onetoken_gateway.py b/vnpy/gateway/onetoken/onetoken_gateway.py index 22a5bb5d..de7aac6d 100644 --- a/vnpy/gateway/onetoken/onetoken_gateway.py +++ b/vnpy/gateway/onetoken/onetoken_gateway.py @@ -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: