From bb42b6a4cde59ddf3cac53d1d5107d16291b338d Mon Sep 17 00:00:00 2001 From: uJhin Date: Fri, 14 Jan 2022 00:53:35 +0900 Subject: [PATCH] [Update] Update Version 1.2.2.4 Refactoring source codes --- client/python/upbit/authentication.py | 2 +- client/python/upbit/pkginfo.py | 6 +++--- client/python/upbit/websocket.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/python/upbit/authentication.py b/client/python/upbit/authentication.py index f1e2270..65512ec 100644 --- a/client/python/upbit/authentication.py +++ b/client/python/upbit/authentication.py @@ -11,7 +11,7 @@ class APIKeyAuthenticator(Authenticator): MAPPER = "swg_mapper.json" - QUERY_PARAMS = tuple("uuids", "txids", "identifiers", "states") + QUERY_PARAMS = ("uuids", "txids", "identifiers", "states") def __init__( diff --git a/client/python/upbit/pkginfo.py b/client/python/upbit/pkginfo.py index 4f599be..473adba 100644 --- a/client/python/upbit/pkginfo.py +++ b/client/python/upbit/pkginfo.py @@ -26,10 +26,10 @@ def _get_versions(package_name): return sorted(versions, key=LooseVersion, reverse=True) -PACKAGE_NAME = 'upbit-client' +PACKAGE_NAME = "upbit-client" -OPEN_API_VERSION = '1.2.2' -CURRENT_VERSION = OPEN_API_VERSION+'.3' +OPEN_API_VERSION = "1.2.2" +CURRENT_VERSION = OPEN_API_VERSION+".4" 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 6b7f381..e0beb02 100644 --- a/client/python/upbit/websocket.py +++ b/client/python/upbit/websocket.py @@ -21,8 +21,8 @@ class UpbitWebSocket: """ WEBSOCKET_URI = "wss://api.upbit.com/websocket/v1" - FIELD_TYPES = tuple("ticker", "trade", "orderbook") - FIELD_FORMATS = tuple("SIMPLE", "DEFAULT") + FIELD_TYPES = ("ticker", "trade", "orderbook") + FIELD_FORMATS = ("SIMPLE", "DEFAULT") def __init__(