Skip to content

Commit 6008273

Browse files
committed
Update Version 1.2.0.1
Update Version 1.2.0.1
1 parent 3d40e13 commit 6008273

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

upbit/authentication.py

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@
88
from bravado.requests_client import Authenticator
99

1010

11-
QUOTATION_PARAMS = ['uuids', 'txids', 'identifiers', 'states']
11+
EXCHANGE_PARAMS = ['uuids', 'txids', 'identifiers', 'states']
12+
QUOTATION_PARAMS = ['uuids', 'txids', 'identifiers',]
13+
QUERY_PARAMS = set(EXCHANGE_PARAMS)
1214
MAPPER = 'swg_mapper.json'
1315

1416

17+
QUERY_PARAMS.update(QUOTATION_PARAMS)
18+
19+
1520
class APIKeyAuthenticator(Authenticator):
1621

1722
def __init__(
@@ -68,15 +73,15 @@ def generate_query(self, params):
6873
query = urlencode({
6974
k: v
7075
for k, v in params.items()
71-
if k not in QUOTATION_PARAMS
76+
if k not in QUERY_PARAMS
7277
})
73-
for quotation in QUOTATION_PARAMS:
74-
if params.get(quotation):
75-
param = params.pop(quotation)
76-
params[f"{quotation}[]"] = param
78+
for query_param in QUERY_PARAMS:
79+
if params.get(query_param):
80+
param = params.pop(query_param)
81+
params[f"{query_param}[]"] = param
7782
query_params = '&'.join([
78-
f"{quotation}[]={q}"
79-
for q in quotation
83+
f"{query_param}[]={q}"
84+
for q in query_param
8085
])
8186
query = f"{query}&{query_params}" if query else query_params
8287
return query

upbit/pkginfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def _get_versions(package_name):
2929
PACKAGE_NAME = 'upbit-client'
3030

3131
OPEN_API_VERSION = '1.2.0'
32-
CURRENT_VERSION = OPEN_API_VERSION+'.0'
32+
CURRENT_VERSION = OPEN_API_VERSION+'.1'
3333

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

upbit/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def remaining_request(headers: dict) -> dict:
2727
def future_extraction(http_future) -> dict:
2828
resp = http_future.future.result()
2929
remaining = HTTPFutureExtractor.remaining_request(resp.headers)
30-
resp.raise_for_status()
30+
# resp.raise_for_status()
3131
return {
3232
"remaining_request": remaining,
3333
"result": resp.json()

0 commit comments

Comments
 (0)