fetches information on an order made by the user https://www.bitmex.com/api/explorer/#not /Order/Order_getOrders :param str id: the order id :param str symbol: unified symbol of the market the order was made in :param dict [params]: extra parameters specifi
(self, id: str, symbol: Str = None, params={})
| 1078 | return result |
| 1079 | |
| 1080 | def fetch_order(self, id: str, symbol: Str = None, params={}): |
| 1081 | """ |
| 1082 | fetches information on an order made by the user |
| 1083 | |
| 1084 | https://www.bitmex.com/api/explorer/#not /Order/Order_getOrders |
| 1085 | |
| 1086 | :param str id: the order id |
| 1087 | :param str symbol: unified symbol of the market the order was made in |
| 1088 | :param dict [params]: extra parameters specific to the exchange API endpoint |
| 1089 | :returns dict: An `order structure <https://docs.ccxt.com/?id=order-structure>` |
| 1090 | """ |
| 1091 | filter = { |
| 1092 | 'filter': { |
| 1093 | 'orderID': id, |
| 1094 | }, |
| 1095 | } |
| 1096 | response = self.fetch_orders(symbol, None, None, self.deep_extend(filter, params)) |
| 1097 | numResults = len(response) |
| 1098 | if numResults == 1: |
| 1099 | return response[0] |
| 1100 | raise OrderNotFound(self.id + ': The order ' + id + ' not found.') |
| 1101 | |
| 1102 | def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]: |
| 1103 | """ |
nothing calls this directly
no test coverage detected