From 263e226c95780e0cfa11565d62049b7f6c1e5a4e Mon Sep 17 00:00:00 2001 From: msincenselee Date: Wed, 12 Feb 2020 11:15:02 +0800 Subject: [PATCH] =?UTF-8?q?[bug=20fix]=20=E6=8C=87=E6=95=B0=E5=90=88?= =?UTF-8?q?=E7=BA=A6vt=5Fsymbol=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/gateway/ctp/ctp_gateway.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vnpy/gateway/ctp/ctp_gateway.py b/vnpy/gateway/ctp/ctp_gateway.py index 362d1fbc..1804fa0e 100644 --- a/vnpy/gateway/ctp/ctp_gateway.py +++ b/vnpy/gateway/ctp/ctp_gateway.py @@ -846,6 +846,7 @@ class CtpTdApi(TdApi): idx_contract = deepcopy(contract) idx_contract.symbol = '{}99'.format(underlying_symbol) idx_contract.name = u'{}指数'.format(underlying_symbol) + idx_contract.vt_symbol = f'{idx_contract.symbol}.{idx_contract.exchange.value}' self.gateway.on_contract(idx_contract) # 获取data/tdx/future_contracts.json中的合约记录