From 8ad0387204a8db0e13be31ddc0449ec6859a8912 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Thu, 7 Nov 2019 10:07:19 +0800 Subject: [PATCH] [Del] remove local generated order time --- vnpy/gateway/bybit/bybit_gateway.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vnpy/gateway/bybit/bybit_gateway.py b/vnpy/gateway/bybit/bybit_gateway.py index f15d0b6e..969c3f63 100644 --- a/vnpy/gateway/bybit/bybit_gateway.py +++ b/vnpy/gateway/bybit/bybit_gateway.py @@ -247,8 +247,7 @@ class BybitRestApi(RestClient): } order = req.create_order_data(order_id, self.gateway_name) - order.time = str(datetime.now().isoformat()) - + # Only add price for limit order. data["order_type"] = ORDER_TYPE_VT2BYBIT[req.type] data["price"] = req.price