fetches information on an closed order made by the user https://trade.cex.io/docs/#rest-private-api-calls-orders :param str id: order id :param str [symbol]: unified symbol of the market the order was made in :param dict [params]: extra parameters specific
(self, id: str, symbol: Str = None, params={})
| 1095 | return result[0] |
| 1096 | |
| 1097 | def fetch_closed_order(self, id: str, symbol: Str = None, params={}): |
| 1098 | """ |
| 1099 | fetches information on an closed order made by the user |
| 1100 | |
| 1101 | https://trade.cex.io/docs/#rest-private-api-calls-orders |
| 1102 | |
| 1103 | :param str id: order id |
| 1104 | :param str [symbol]: unified symbol of the market the order was made in |
| 1105 | :param dict [params]: extra parameters specific to the exchange API endpoint |
| 1106 | :returns dict: an `order structure <https://docs.ccxt.com/?id=order-structure>` |
| 1107 | """ |
| 1108 | self.load_markets() |
| 1109 | request = { |
| 1110 | 'orderId': int(id), |
| 1111 | } |
| 1112 | result = self.fetch_closed_orders(symbol, None, None, self.extend(request, params)) |
| 1113 | return result[0] |
| 1114 | |
| 1115 | def parse_order_status(self, status: Str): |
| 1116 | statuses = { |
nothing calls this directly
no test coverage detected