Skip to content

Commit

Permalink
Merge pull request #47 from uJhin/1.3.2
Browse files Browse the repository at this point in the history
[Update] Upbit OPEN API Version 1.3.2
  • Loading branch information
uJhin authored Jul 12, 2022
2 parents c6389e2 + d760224 commit dccaeae
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion client/python/upbit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
- GitHub: https://github.com/uJhin
Expand Down
9 changes: 6 additions & 3 deletions client/python/upbit/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion client/python/upbit/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
- GitHub: https://github.com/uJhin
Expand Down
6 changes: 3 additions & 3 deletions client/python/upbit/pkginfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
- GitHub: https://github.com/uJhin
Expand All @@ -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]
Expand Down

0 comments on commit dccaeae

Please sign in to comment.