From 65bc5688888897310d8e83a44efa0af7ccd76ede Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Mon, 18 Dec 2017 09:39:04 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=E4=BF=AE=E5=A4=8DvtSymbol=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=8C=87=E5=90=91symbol?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/uiBasicWidget.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vnpy/trader/uiBasicWidget.py b/vnpy/trader/uiBasicWidget.py index d43dba1b..03d68d7d 100644 --- a/vnpy/trader/uiBasicWidget.py +++ b/vnpy/trader/uiBasicWidget.py @@ -1043,11 +1043,12 @@ class TradingWidget(QtWidgets.QFrame): if contract: gatewayName = contract.gatewayName exchange = contract.exchange # 保证有交易所代码 + vtSymbol = contract.vtSymbol req = VtOrderReq() req.symbol = symbol req.exchange = exchange - vtSymbol = contract.vtSymbol + req.vtSymbol = vtSymbol req.price = self.spinPrice.value() req.volume = self.spinVolume.value() req.direction = unicode(self.comboDirection.currentText())