Skip to content

Commit 7f51f9c

Browse files
committed
[Update] Upbit OPEN API v1.2.2
[Update] Upbit OPEN API v1.2.2
1 parent df8631e commit 7f51f9c

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

client/python/upbit/pkginfo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def _get_versions(package_name):
2828

2929
PACKAGE_NAME = 'upbit-client'
3030

31-
OPEN_API_VERSION = '1.2.0'
32-
CURRENT_VERSION = OPEN_API_VERSION+'.4'
31+
OPEN_API_VERSION = '1.2.2'
32+
CURRENT_VERSION = OPEN_API_VERSION+'.0'
3333

3434
RELEASED_VERSION = _get_versions(PACKAGE_NAME)
3535
LATEST_VERSION = RELEASED_VERSION[0]

client/python/upbit/websocket.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@ def connect(
7575
ping_timeout=ping_timeout
7676
)
7777

78+
async def ping(self):
79+
"""
80+
Client to Server PING
81+
"""
82+
async with self as conn:
83+
await conn.send('PING')
84+
recv = await conn.recv()
85+
return json.loads(recv)
86+
7887
@staticmethod
7988
def generate_orderbook_codes(
8089
currencies: Union[List[str]],

0 commit comments

Comments
 (0)