[Add] BaseGateway Document: send_order.orderid should be unique

This commit is contained in:
nanoric 2019-03-15 03:37:42 -04:00
parent c414f561f6
commit 0eb9630b23

View File

@ -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