diff --git a/client/python/upbit/__init__.py b/client/python/upbit/__init__.py index 89206d3..88e1fae 100644 --- a/client/python/upbit/__init__.py +++ b/client/python/upbit/__init__.py @@ -4,7 +4,7 @@ Please read the official Upbit Client document. Documents: https://ujhin.github.io/upbit-client-docs/ -- Upbit OPEN API Version: 1.3.1 +- Upbit OPEN API Version: 1.3.2 - Author: ujhin - Email: ujhin942@gmail.com - GitHub: https://github.com/uJhin diff --git a/client/python/upbit/authentication.py b/client/python/upbit/authentication.py index 7810c8f..ef2a1e1 100644 --- a/client/python/upbit/authentication.py +++ b/client/python/upbit/authentication.py @@ -26,12 +26,15 @@ def __init__( self.host = host self.access_key = access_key self.secret_key = secret_key + + self.urlencode = APIKeyAuthenticator.urlencode + self.jwt = APIKeyAuthenticator.jwt self.algorithms = self.jwt.algorithms self.algo = "HS512" def matches(self, url): - return APIKeyAuthenticator.MAPPER not in url + return self.MAPPER not in url def apply(self, request): @@ -74,9 +77,9 @@ def generate_query(self, params): query = self.urlencode({ k: v for k, v in params.items() - if k.lower() not in APIKeyAuthenticator.QUERY_PARAMS + if k.lower() not in self.QUERY_PARAMS }) - for query_param in APIKeyAuthenticator.QUERY_PARAMS: + for query_param in self.QUERY_PARAMS: if params.get(query_param): param = params.pop(query_param) params[f"{query_param}[]"] = param diff --git a/client/python/upbit/client.py b/client/python/upbit/client.py index 49fdf4d..811b3f1 100644 --- a/client/python/upbit/client.py +++ b/client/python/upbit/client.py @@ -10,7 +10,7 @@ class Upbit: - Base URL: https://api.upbit.com - Base Path: /v1 - - Upbit OPEN API Version: 1.3.1 + - Upbit OPEN API Version: 1.3.2 - Author: ujhin - Email: ujhin942@gmail.com - GitHub: https://github.com/uJhin diff --git a/client/python/upbit/pkginfo.py b/client/python/upbit/pkginfo.py index f2e09c4..1402ddc 100644 --- a/client/python/upbit/pkginfo.py +++ b/client/python/upbit/pkginfo.py @@ -4,7 +4,7 @@ Please read the official Upbit Client document. Documents: https://ujhin.github.io/upbit-client-docs/ -- Upbit OPEN API Version: 1.3.1 +- Upbit OPEN API Version: 1.3.2 - Author: ujhin - Email: ujhin942@gmail.com - GitHub: https://github.com/uJhin @@ -28,8 +28,8 @@ def _get_versions(package_name): PACKAGE_NAME = "upbit-client" -OPEN_API_VERSION = "1.3.1" -CURRENT_VERSION = OPEN_API_VERSION+".1" +OPEN_API_VERSION = "1.3.2" +CURRENT_VERSION = OPEN_API_VERSION+".0" RELEASED_VERSION = _get_versions(PACKAGE_NAME) LATEST_VERSION = RELEASED_VERSION[0]