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

Method fetch_canceled_orders

python/ccxt/pacifica.py:1878–1891  ·  view source on GitHub ↗

fetch all canceled 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 parameters specifi

(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})

Source from the content-addressed store, hash-verified

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 """
1880 fetch all canceled orders
1881 :param str symbol: unified market symbol
1882 :param int [since]: the earliest time in ms to fetch open orders for
1883 :param int [limit]: the maximum number of open orders structures to retrieve
1884 :param dict [params]: extra parameters specific to the exchange API endpoint
1885 :param str [params.account]: will default to walletAddress if not provided
1886 :returns Order[]: a list of `order structures <https://docs.ccxt.com/?id=order-structure>`
1887 """
1888 self.load_markets()
1889 orders = self.fetch_orders(symbol, None, None, params) # don't filter here because we don't want to catch open orders
1890 closedOrders = self.filter_by_array(orders, 'status', ['canceled'], False)
1891 return self.filter_by_symbol_since_limit(closedOrders, symbol, since, limit)
1892
1893 def fetch_canceled_and_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1894 """

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