[Fix]close #1580
This commit is contained in:
parent
8684e4c15c
commit
b83599bc54
@ -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"],
|
||||
|
Loading…
Reference in New Issue
Block a user