[Fix]修复vtSymbol错误指向symbol

This commit is contained in:
vn.py 2017-12-18 09:39:04 +08:00
parent 7a255ae4cf
commit 65bc568888

View File

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