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'])) ########################################################################