From 81c7e105ab765071923002af1b5098a7c63fe301 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Wed, 24 Jul 2019 10:46:25 +0800 Subject: [PATCH] [Fix] no vt_orderid return after sending order --- vnpy/gateway/rpc/rpc_gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/gateway/rpc/rpc_gateway.py b/vnpy/gateway/rpc/rpc_gateway.py index c9ad39a8..a1807adb 100644 --- a/vnpy/gateway/rpc/rpc_gateway.py +++ b/vnpy/gateway/rpc/rpc_gateway.py @@ -50,7 +50,7 @@ class RpcGateway(BaseGateway): def send_order(self, req: OrderRequest): """""" gateway_name = self.symbol_gateway_map.get(req.vt_symbol, "") - self.client.send_order(req, gateway_name) + return self.client.send_order(req, gateway_name) def cancel_order(self, req: CancelRequest): """"""