*spot only* fetches information on an order made by the user https://documenter.getpostman.com/view/10287440/SzYXWKPi#cf27781e-28e5-4b39-a52d-3110f5d22459 # spot :param str id: order id :param str symbol: not used by exmo fetchOrder :param dict [params]: e
(self, id: str, symbol: Str = None, params={})
| 1657 | return self.parse_order(response) |
| 1658 | |
| 1659 | async def fetch_order(self, id: str, symbol: Str = None, params={}): |
| 1660 | """ |
| 1661 | *spot only* fetches information on an order made by the user |
| 1662 | |
| 1663 | https://documenter.getpostman.com/view/10287440/SzYXWKPi#cf27781e-28e5-4b39-a52d-3110f5d22459 # spot |
| 1664 | |
| 1665 | :param str id: order id |
| 1666 | :param str symbol: not used by exmo fetchOrder |
| 1667 | :param dict [params]: extra parameters specific to the exchange API endpoint |
| 1668 | :returns dict: An `order structure <https://docs.ccxt.com/?id=order-structure>` |
| 1669 | """ |
| 1670 | await self.load_markets() |
| 1671 | request = { |
| 1672 | 'order_id': str(id), |
| 1673 | } |
| 1674 | response = await self.privatePostOrderTrades(self.extend(request, params)) |
| 1675 | # |
| 1676 | # { |
| 1677 | # "type": "buy", |
| 1678 | # "in_currency": "BTC", |
| 1679 | # "in_amount": "1", |
| 1680 | # "out_currency": "USD", |
| 1681 | # "out_amount": "100", |
| 1682 | # "trades": [ |
| 1683 | # { |
| 1684 | # "trade_id": 3, |
| 1685 | # "date": 1435488248, |
| 1686 | # "type": "buy", |
| 1687 | # "pair": "BTC_USD", |
| 1688 | # "order_id": 12345, |
| 1689 | # "quantity": 1, |
| 1690 | # "price": 100, |
| 1691 | # "amount": 100 |
| 1692 | # } |
| 1693 | # ] |
| 1694 | # } |
| 1695 | # |
| 1696 | order = self.parse_order(response) |
| 1697 | order['id'] = str(id) |
| 1698 | return order |
| 1699 | |
| 1700 | async def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}): |
| 1701 | """ |
nothing calls this directly
no test coverage detected