MCPcopy Create free account
hub / github.com/ccxt/ccxt / fetch_closed_orders

Method fetch_closed_orders

python/ccxt/pacifica.py:1863–1876  ·  view source on GitHub ↗

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={})

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 4

fetch_ordersMethod · 0.95
filter_by_arrayMethod · 0.80
load_marketsMethod · 0.45

Tested by

no test coverage detected