From f316c5412c99c3d9a048e5bef96687778d87c1c7 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Wed, 22 May 2019 11:29:28 +0800 Subject: [PATCH] [Fix] change contract map string --- vnpy/gateway/hbdm/hbdm_gateway.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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("合约信息查询成功")