Skip to content

Commit bf5eea3

Browse files
authored
Merge pull request #31 from uJhin/1.3.2
[Update] Upbit OPEN API Version 1.3.2
2 parents e046901 + 0249e88 commit bf5eea3

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

upbit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Please read the official Upbit Client document.
55
Documents: https://ujhin.github.io/upbit-client-docs/
66
7-
- Upbit OPEN API Version: 1.3.1
7+
- Upbit OPEN API Version: 1.3.2
88
- Author: ujhin
99
1010
- GitHub: https://github.com/uJhin

upbit/authentication.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,15 @@ def __init__(
2626
self.host = host
2727
self.access_key = access_key
2828
self.secret_key = secret_key
29+
30+
self.urlencode = APIKeyAuthenticator.urlencode
31+
self.jwt = APIKeyAuthenticator.jwt
2932
self.algorithms = self.jwt.algorithms
3033
self.algo = "HS512"
3134

3235

3336
def matches(self, url):
34-
return APIKeyAuthenticator.MAPPER not in url
37+
return self.MAPPER not in url
3538

3639

3740
def apply(self, request):
@@ -74,9 +77,9 @@ def generate_query(self, params):
7477
query = self.urlencode({
7578
k: v
7679
for k, v in params.items()
77-
if k.lower() not in APIKeyAuthenticator.QUERY_PARAMS
80+
if k.lower() not in self.QUERY_PARAMS
7881
})
79-
for query_param in APIKeyAuthenticator.QUERY_PARAMS:
82+
for query_param in self.QUERY_PARAMS:
8083
if params.get(query_param):
8184
param = params.pop(query_param)
8285
params[f"{query_param}[]"] = param

upbit/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Upbit:
1010
1111
- Base URL: https://api.upbit.com
1212
- Base Path: /v1
13-
- Upbit OPEN API Version: 1.3.1
13+
- Upbit OPEN API Version: 1.3.2
1414
- Author: ujhin
1515
1616
- GitHub: https://github.com/uJhin

upbit/pkginfo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Please read the official Upbit Client document.
55
Documents: https://ujhin.github.io/upbit-client-docs/
66
7-
- Upbit OPEN API Version: 1.3.1
7+
- Upbit OPEN API Version: 1.3.2
88
- Author: ujhin
99
1010
- GitHub: https://github.com/uJhin
@@ -28,8 +28,8 @@ def _get_versions(package_name):
2828

2929
PACKAGE_NAME = "upbit-client"
3030

31-
OPEN_API_VERSION = "1.3.1"
32-
CURRENT_VERSION = OPEN_API_VERSION+".1"
31+
OPEN_API_VERSION = "1.3.2"
32+
CURRENT_VERSION = OPEN_API_VERSION+".0"
3333

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

0 commit comments

Comments
 (0)