diff --git a/vnpy/api/okexfuture/vnokexFuture.py b/vnpy/api/okexfuture/vnokexFuture.py index 6f9ea6b4..1f393ea5 100644 --- a/vnpy/api/okexfuture/vnokexFuture.py +++ b/vnpy/api/okexfuture/vnokexFuture.py @@ -61,13 +61,13 @@ class OkexFutureWebSocketBase(WebSocketClient): def __init__(self): super(OkexFutureWebSocketBase, self).__init__() + super(OkexFutureWebSocketBase, self).init(OkexFutureWebSocketBase.host) self.apiKey = None self.apiSecret = None #---------------------------------------------------------------------- # noinspection PyMethodOverriding def init(self, apiKey, secretKey): - super(OkexFutureWebSocketBase, self).init(self.host) self.apiKey = apiKey self.apiSecret = secretKey