From 203d7cba7c76bbac9b367e8ea917d3373d7b71f1 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Tue, 7 May 2019 09:41:30 +0800 Subject: [PATCH] [Add] exchanges data memeber for HuobiGateway/HbdmGateway --- vnpy/gateway/hbdm/hbdm_gateway.py | 2 ++ vnpy/gateway/huobi/huobi_gateway.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/vnpy/gateway/hbdm/hbdm_gateway.py b/vnpy/gateway/hbdm/hbdm_gateway.py index 87cac9fa..de681d24 100644 --- a/vnpy/gateway/hbdm/hbdm_gateway.py +++ b/vnpy/gateway/hbdm/hbdm_gateway.py @@ -87,6 +87,8 @@ class HbdmGateway(BaseGateway): "代理端口": "", } + exchagnes = [Exchange.HUOBI] + def __init__(self, event_engine): """Constructor""" super().__init__(event_engine, "HBDM") diff --git a/vnpy/gateway/huobi/huobi_gateway.py b/vnpy/gateway/huobi/huobi_gateway.py index cf99cf02..ef1c2bf3 100644 --- a/vnpy/gateway/huobi/huobi_gateway.py +++ b/vnpy/gateway/huobi/huobi_gateway.py @@ -75,6 +75,8 @@ class HuobiGateway(BaseGateway): "代理端口": "", } + exchagnes = [Exchange.HUOBI] + def __init__(self, event_engine): """Constructor""" super().__init__(event_engine, "HUOBI")