Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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