From a431bf4353f128b78179b6be48943c35dba5da44 Mon Sep 17 00:00:00 2001 From: chenxy123 Date: Fri, 2 Dec 2016 22:54:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DIB=E6=8E=A5=E5=8F=A3=E7=9A=84?= =?UTF-8?q?=E6=88=90=E4=BA=A4=E5=AF=B9=E8=B1=A1=E6=8E=A8=E9=80=81=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vn.trader/ibGateway/ibGateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vn.trader/ibGateway/ibGateway.py b/vn.trader/ibGateway/ibGateway.py index ab816b99..bb3f4629 100644 --- a/vn.trader/ibGateway/ibGateway.py +++ b/vn.trader/ibGateway/ibGateway.py @@ -561,7 +561,7 @@ class IbWrapper(IbApi): trade.vtSymbol = '.'.join([trade.symbol, trade.exchange]) trade.orderID = str(execution.orderId) - trade.vtOrderID = '.'.join([self.gatewayName, trade.orderId]) + trade.vtOrderID = '.'.join([self.gatewayName, trade.orderID]) trade.direction = directionMapReverse.get(execution.side, '') trade.price = execution.price trade.volume = execution.shares