diff --git a/vnpy/gateway/ctp/ctp_gateway.py b/vnpy/gateway/ctp/ctp_gateway.py index f1a25811..057e6db8 100644 --- a/vnpy/gateway/ctp/ctp_gateway.py +++ b/vnpy/gateway/ctp/ctp_gateway.py @@ -553,7 +553,7 @@ class CtpTdApi(TdApi): ) # For option only - if data["OptionsType"]: + if contract.product == Product.OPTION: contract.option_underlying = data["UnderlyingInstrID"], contract.option_type = OPTIONTYPE_CTP2VT.get(data["OptionsType"], None), contract.option_strike = data["StrikePrice"],