diff --git a/vnpy/trader/gateway/cshshlpGateway/cshshlpGateway.py b/vnpy/trader/gateway/cshshlpGateway/cshshlpGateway.py index 8e8689cb..767fd7fb 100644 --- a/vnpy/trader/gateway/cshshlpGateway/cshshlpGateway.py +++ b/vnpy/trader/gateway/cshshlpGateway/cshshlpGateway.py @@ -389,6 +389,7 @@ class CshshlpTdApi(CsHsHlp): contract.underlyingSymbol = d['stock_code'] contract.productClass = PRODUCT_OPTION contract.optionType = optionTypeMapReverse[d['option_type']] + contract.expiryDate = d['end_date'] self.gateway.onContract(contract) diff --git a/vnpy/trader/vtObject.py b/vnpy/trader/vtObject.py index 4d9612a4..a0a0e421 100644 --- a/vnpy/trader/vtObject.py +++ b/vnpy/trader/vtObject.py @@ -260,6 +260,7 @@ class VtContractData(VtBaseData): self.strikePrice = EMPTY_FLOAT # 期权行权价 self.underlyingSymbol = EMPTY_STRING # 标的物合约代码 self.optionType = EMPTY_UNICODE # 期权类型 + self.expiryDate = EMPTY_STRING # 到期日 ########################################################################