[Fix] change contract map string

This commit is contained in:
vn.py 2019-05-22 11:29:28 +08:00
parent b56d0ce160
commit f316c5412c

View File

@ -84,7 +84,7 @@ INTERVAL_VT2HBDM = {
CONTRACT_TYPE_MAP = { CONTRACT_TYPE_MAP = {
"this_week": "CW", "this_week": "CW",
"next_week": "NW", "next_week": "NW",
"this_quarter": "CQ" "quarter": "CQ"
} }
@ -654,7 +654,7 @@ class HbdmRestApi(RestClient):
) )
self.gateway.on_contract(contract) 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("合约信息查询成功") self.gateway.write_log("合约信息查询成功")