From 0eb9630b231e310bc8b5b36be4ca18e07fbc4cb0 Mon Sep 17 00:00:00 2001 From: nanoric Date: Fri, 15 Mar 2019 03:37:42 -0400 Subject: [PATCH] [Add] BaseGateway Document: send_order.orderid should be unique --- vnpy/trader/gateway.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vnpy/trader/gateway.py b/vnpy/trader/gateway.py index 2442f990..d1a6248f 100644 --- a/vnpy/trader/gateway.py +++ b/vnpy/trader/gateway.py @@ -185,6 +185,7 @@ class BaseGateway(ABC): implementation should finish the tasks blow: * create an OrderData from req using OrderRequest.create_order_data + * assign a unique(gateway instance scope) id to OrderData.orderid * send request to server * if request is sent, OrderData.status should be set to Status.SUBMITTING * if request is failed to sent, OrderData.status should be set to Status.REJECTED