fetch all unfilled currently closed orders :param str symbol: unified market symbol :param int [since]: the earliest time in ms to fetch open orders for :param int [limit]: the maximum number of open orders structures to retrieve :param dict [params]: extra p
(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})
| 1861 | }, market) |
| 1862 | |
| 1863 | def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]: |
| 1864 | """ |
| 1865 | fetch all unfilled currently closed orders |
| 1866 | :param str symbol: unified market symbol |
| 1867 | :param int [since]: the earliest time in ms to fetch open orders for |
| 1868 | :param int [limit]: the maximum number of open orders structures to retrieve |
| 1869 | :param dict [params]: extra parameters specific to the exchange API endpoint |
| 1870 | :param str [params.account]: will default to walletAddress if not provided |
| 1871 | :returns Order[]: a list of `order structures <https://docs.ccxt.com/?id=order-structure>` |
| 1872 | """ |
| 1873 | self.load_markets() |
| 1874 | orders = self.fetch_orders(symbol, None, None, params) # don't filter here because we don't want to catch open orders |
| 1875 | closedOrders = self.filter_by_array(orders, 'status', ['closed'], False) |
| 1876 | return self.filter_by_symbol_since_limit(closedOrders, symbol, since, limit) |
| 1877 | |
| 1878 | def fetch_canceled_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]: |
| 1879 | """ |
nothing calls this directly
no test coverage detected