Skip to content

Commit

Permalink
update deprecated api
Browse files Browse the repository at this point in the history
  • Loading branch information
woongity committed Oct 13, 2024
1 parent c5f80ea commit 4c5e825
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pyupbit/exchange_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,12 @@ def get_order(self, ticker_or_uuid, state='wait', page=1, limit=100, contain_req
# - r"^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$"
is_uuid = len(p.findall(ticker_or_uuid)) > 0
if is_uuid:
url = "https://api.upbit.com/v1/order"
url = "https://api.upbit.com/v1/orders/uuids"
data = {'uuid': ticker_or_uuid}
headers = self._request_headers(data)
result = _send_get_request(url, headers=headers, data=data)
else :

url = "https://api.upbit.com/v1/orders"
else:
url = "https://api.upbit.com/v1/orders/closed" if state in ['cancel', 'done'] else "https://api.upbit.com/v1/orders/open"
data = {'market': ticker_or_uuid,
'state': state,
'page': page,
Expand Down Expand Up @@ -326,7 +325,7 @@ def get_individual_order(self, uuid, contain_req=False):
"""
# TODO : states, uuids, identifiers 관련 기능 추가 필요
try:
url = "https://api.upbit.com/v1/order"
url = "https://api.upbit.com/v1/order/uuids"
data = {'uuid': uuid}
headers = self._request_headers(data)
result = _send_get_request(url, headers=headers, data=data)
Expand Down

0 comments on commit 4c5e825

Please sign in to comment.