[Mod]调整secGateway的交易所代码默认字段

This commit is contained in:
vn.py 2018-02-13 14:58:02 +08:00
parent 2b8f918866
commit 25e535641c

View File

@ -1218,7 +1218,7 @@ class SecTdApi(TdApi):
contract.gatewayName = self.gatewayName
contract.symbol = data['securityOptionID']
contract.exchange = exchangeMapReverse.get(data['exchangeID'], EXCHANGE_UNKNOWN)
contract.exchange = exchangeMapReverse.get(data['exchangeID'], EXCHANGE_SSE)
contract.vtSymbol = '.'.join([contract.symbol, contract.exchange])
contract.name = data['contractName'].decode('GBK')