Skip to content

Commit

Permalink
[Update] Upbit OPEN API v1.2.2
Browse files Browse the repository at this point in the history
[Update] Upbit OPEN API v1.2.2
  • Loading branch information
uJhin committed Dec 1, 2021
1 parent df8631e commit 7f51f9c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/python/upbit/pkginfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
9 changes: 9 additions & 0 deletions client/python/upbit/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]],
Expand Down

0 comments on commit 7f51f9c

Please sign in to comment.