diff --git a/tests/api/base/WebSocketClientTest.py b/tests/api/base/WebSocketClientTest.py index dc9651dd..8d931ecf 100644 --- a/tests/api/base/WebSocketClientTest.py +++ b/tests/api/base/WebSocketClientTest.py @@ -2,10 +2,10 @@ import unittest from Promise import Promise -from vnpy.api.websocket import WebsocketClient +from vnpy.api.websocket import WebSocketClient -class TestWebsocketClient(WebsocketClient): +class TestWebsocketClient(WebSocketClient): def __init__(self): host = 'wss://echo.websocket.org' diff --git a/vnpy/api/websocket/WebSocketClient.py b/vnpy/api/websocket/WebSocketClient.py index 3cde4ef7..e208ce8f 100644 --- a/vnpy/api/websocket/WebSocketClient.py +++ b/vnpy/api/websocket/WebSocketClient.py @@ -12,7 +12,7 @@ from threading import Thread, Lock import websocket -class WebsocketClient(object): +class WebSocketClient(object): """Websocket API""" #---------------------------------------------------------------------- diff --git a/vnpy/api/websocket/__init__.py b/vnpy/api/websocket/__init__.py index 3e58eeb4..5c44c43f 100644 --- a/vnpy/api/websocket/__init__.py +++ b/vnpy/api/websocket/__init__.py @@ -1 +1 @@ -from .WebSocketClient import WebsocketClient +from .WebSocketClient import WebSocketClient