From 17e0a40613959f3ebbdb51cc4f5434f60308dd6b Mon Sep 17 00:00:00 2001 From: chenxy123 Date: Tue, 29 Nov 2016 22:46:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DibGateway=E7=9A=84=E6=88=90?= =?UTF-8?q?=E4=BA=A4=E5=9B=9E=E6=8A=A5=E4=B8=AD=E7=BC=BA=E5=B0=91vtOrderID?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vn.trader/ibGateway/ibGateway.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vn.trader/ibGateway/ibGateway.py b/vn.trader/ibGateway/ibGateway.py index b51292c9..ab816b99 100644 --- a/vn.trader/ibGateway/ibGateway.py +++ b/vn.trader/ibGateway/ibGateway.py @@ -561,6 +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.direction = directionMapReverse.get(execution.side, '') trade.price = execution.price trade.volume = execution.shares