diff --git a/vnpy/gateway/hbdm/hbdm_gateway.py b/vnpy/gateway/hbdm/hbdm_gateway.py index f1848c09..fe0d93dc 100644 --- a/vnpy/gateway/hbdm/hbdm_gateway.py +++ b/vnpy/gateway/hbdm/hbdm_gateway.py @@ -84,7 +84,7 @@ INTERVAL_VT2HBDM = { CONTRACT_TYPE_MAP = { "this_week": "CW", "next_week": "NW", - "this_quarter": "CQ" + "quarter": "CQ" } @@ -654,7 +654,7 @@ class HbdmRestApi(RestClient): ) self.gateway.on_contract(contract) - symbol_type_map[contract.symbol] = d['contract_type'] + symbol_type_map[contract.symbol] = d["contract_type"] self.gateway.write_log("合约信息查询成功")