diff --git a/client/python/upbit/pkginfo.py b/client/python/upbit/pkginfo.py index 253c8e3..450bff6 100644 --- a/client/python/upbit/pkginfo.py +++ b/client/python/upbit/pkginfo.py @@ -28,8 +28,8 @@ def _get_versions(package_name): PACKAGE_NAME = 'upbit-client' -OPEN_API_VERSION = '1.2.0' -CURRENT_VERSION = OPEN_API_VERSION+'.4' +OPEN_API_VERSION = '1.2.2' +CURRENT_VERSION = OPEN_API_VERSION+'.0' RELEASED_VERSION = _get_versions(PACKAGE_NAME) LATEST_VERSION = RELEASED_VERSION[0] diff --git a/client/python/upbit/websocket.py b/client/python/upbit/websocket.py index 358bb55..4bb0c1d 100644 --- a/client/python/upbit/websocket.py +++ b/client/python/upbit/websocket.py @@ -75,6 +75,15 @@ def connect( ping_timeout=ping_timeout ) + async def ping(self): + """ + Client to Server PING + """ + async with self as conn: + await conn.send('PING') + recv = await conn.recv() + return json.loads(recv) + @staticmethod def generate_orderbook_codes( currencies: Union[List[str]],