From d25065fdea6e9b583045aa4f4dcdadda355bcc96 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Wed, 26 Dec 2018 12:31:28 +0800 Subject: [PATCH] =?UTF-8?q?[Mod]=E8=B0=83=E6=95=B4onErrorMsg=E5=87=BD?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/gateway/huobiGateway/huobiGateway.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnpy/trader/gateway/huobiGateway/huobiGateway.py b/vnpy/trader/gateway/huobiGateway/huobiGateway.py index 6df42acd..74187a1b 100644 --- a/vnpy/trader/gateway/huobiGateway/huobiGateway.py +++ b/vnpy/trader/gateway/huobiGateway/huobiGateway.py @@ -498,9 +498,9 @@ class HuobiWebsocketApiBase(WebsocketClient): print("data : {}".format(packet)) #---------------------------------------------------------------------- - def onError(self, packet): # type: (dict)->None + def onErrorMsg(self, packet): # type: (dict)->None """""" - print("error : {}".format(packet)) + self.gateway.writeLog(packet['err-msg'])) ########################################################################