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

Method fetch_closed_orders

python/ccxt/bitmex.py:1162–1176  ·  view source on GitHub ↗

fetches information on multiple closed orders made by the user https://www.bitmex.com/api/explorer/#not /Order/Order_getOrders :param str symbol: unified market symbol of the market orders were made in :param int [since]: the earliest time in ms to fetch orders for

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

Source from the content-addressed store, hash-verified

1160 return self.fetch_orders(symbol, since, limit, self.deep_extend(request, params))
1161
1162 def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1163 """
1164 fetches information on multiple closed orders made by the user
1165
1166 https://www.bitmex.com/api/explorer/#not /Order/Order_getOrders
1167
1168 :param str symbol: unified market symbol of the market orders were made in
1169 :param int [since]: the earliest time in ms to fetch orders for
1170 :param int [limit]: the maximum number of order structures to retrieve
1171 :param dict [params]: extra parameters specific to the exchange API endpoint
1172 :returns Order[]: a list of `order structures <https://docs.ccxt.com/?id=order-structure>`
1173 """
1174 # Bitmex barfs if you set 'open': False in the filter...
1175 orders = self.fetch_orders(symbol, since, limit, params)
1176 return self.filter_by_array(orders, 'status', ['closed', 'canceled'], False)
1177
1178 def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1179 """

Callers

nothing calls this directly

Calls 2

fetch_ordersMethod · 0.95
filter_by_arrayMethod · 0.80

Tested by

no test coverage detected