fetch data on a currency withdrawal via the withdrawal id https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706 :param str id: withdrawal id :param str code: unified currency code of the currency withdrawn, default is None
(self, id: str, code: Str = None, params={})
| 2441 | return self.parse_transactions(items, currency, since, limit) |
| 2442 | |
| 2443 | def fetch_withdrawal(self, id: str, code: Str = None, params={}): |
| 2444 | """ |
| 2445 | fetch data on a currency withdrawal via the withdrawal id |
| 2446 | |
| 2447 | https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706 |
| 2448 | |
| 2449 | :param str id: withdrawal id |
| 2450 | :param str code: unified currency code of the currency withdrawn, default is None |
| 2451 | :param dict [params]: extra parameters specific to the exchange API endpoint |
| 2452 | :returns dict: a `transaction structure <https://docs.ccxt.com/?id=transaction-structure>` |
| 2453 | """ |
| 2454 | self.load_markets() |
| 2455 | currency = None |
| 2456 | request = { |
| 2457 | 'order_id': id, |
| 2458 | 'type': 'withdraw', |
| 2459 | } |
| 2460 | if code is not None: |
| 2461 | currency = self.currency(code) |
| 2462 | request['currency'] = currency['id'] |
| 2463 | response = self.privatePostWalletOperations(self.extend(request, params)) |
| 2464 | # |
| 2465 | # { |
| 2466 | # "items": [ |
| 2467 | # { |
| 2468 | # "operation_id": 47412538520634344, |
| 2469 | # "created": 1573760013, |
| 2470 | # "updated": 1573760013, |
| 2471 | # "type": "deposit", |
| 2472 | # "currency": "DOGE", |
| 2473 | # "status": "Paid", |
| 2474 | # "amount": "300", |
| 2475 | # "provider": "DOGE", |
| 2476 | # "commission": "0", |
| 2477 | # "account": "DOGE: DBVy8pF1f8yxaCVEHqHeR7kkcHecLQ8nRS", |
| 2478 | # "order_id": 69670170, |
| 2479 | # "extra": { |
| 2480 | # "txid": "f2b66259ae1580f371d38dd27e31a23fff8c04122b65ee3ab5a3f612d579c792", |
| 2481 | # "excode": "", |
| 2482 | # "invoice": "" |
| 2483 | # }, |
| 2484 | # "error": "" |
| 2485 | # }, |
| 2486 | # ], |
| 2487 | # "count": 23 |
| 2488 | # } |
| 2489 | # |
| 2490 | items = self.safe_value(response, 'items', []) |
| 2491 | first = self.safe_dict(items, 0, {}) |
| 2492 | return self.parse_transaction(first, currency) |
| 2493 | |
| 2494 | def fetch_deposit(self, id: str, code: Str = None, params={}): |
| 2495 | """ |
nothing calls this directly
no test coverage detected