fetch data on a currency withdrawal via the withdrawal id https://docs.upbit.com/kr/reference/get-withdrawal https://global-docs.upbit.com/reference/get-withdrawal :param str id: the unique id for the withdrawal :param str [code]: unified currency code of t
(self, id: str, code: Str = None, params={})
| 1532 | return self.parse_transactions(response, currency, since, limit) |
| 1533 | |
| 1534 | def fetch_withdrawal(self, id: str, code: Str = None, params={}): |
| 1535 | """ |
| 1536 | fetch data on a currency withdrawal via the withdrawal id |
| 1537 | |
| 1538 | https://docs.upbit.com/kr/reference/get-withdrawal |
| 1539 | https://global-docs.upbit.com/reference/get-withdrawal |
| 1540 | |
| 1541 | :param str id: the unique id for the withdrawal |
| 1542 | :param str [code]: unified currency code of the currency withdrawn |
| 1543 | :param dict [params]: extra parameters specific to the exchange API endpoint |
| 1544 | :param str [params.txid]: withdrawal transaction id, the id argument is reserved for uuid |
| 1545 | :returns dict: a `transaction structure <https://docs.ccxt.com/?id=transaction-structure>` |
| 1546 | """ |
| 1547 | self.load_markets() |
| 1548 | request = { |
| 1549 | 'uuid': id, |
| 1550 | } |
| 1551 | currency = None |
| 1552 | if code is not None: |
| 1553 | currency = self.currency(code) |
| 1554 | request['currency'] = currency['id'] |
| 1555 | response = self.privateGetWithdraw(self.extend(request, params)) |
| 1556 | # |
| 1557 | # { |
| 1558 | # "type": "withdraw", |
| 1559 | # "uuid": "95ef274b-23a6-4de4-95b0-5cbef4ca658f", |
| 1560 | # "currency": "ADA", |
| 1561 | # "net_type": "ADA", |
| 1562 | # "txid": "b1528f149297a71671b86636f731f8fdb0ff53da0f1d8c19093d59df96f34583", |
| 1563 | # "state": "DONE", |
| 1564 | # "created_at": "2023-12-14T02:46:52Z", |
| 1565 | # "done_at": "2023-12-14T03:10:11Z", |
| 1566 | # "amount": "35.22344", |
| 1567 | # "fee": "0.5", |
| 1568 | # "transaction_type": "default" |
| 1569 | # } |
| 1570 | # |
| 1571 | return self.parse_transaction(response, currency) |
| 1572 | |
| 1573 | def parse_transaction_status(self, status: Str): |
| 1574 | statuses = { |
nothing calls this directly
no test coverage detected