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

Method fetch_closed_order

python/ccxt/cex.py:1097–1113  ·  view source on GitHub ↗

fetches information on an closed order made by the user https://trade.cex.io/docs/#rest-private-api-calls-orders :param str id: order id :param str [symbol]: unified symbol of the market the order was made in :param dict [params]: extra parameters specific

(self, id: str, symbol: Str = None, params={})

Source from the content-addressed store, hash-verified

1095 return result[0]
1096
1097 def fetch_closed_order(self, id: str, symbol: Str = None, params={}):
1098 """
1099 fetches information on an closed order made by the user
1100
1101 https://trade.cex.io/docs/#rest-private-api-calls-orders
1102
1103 :param str id: order id
1104 :param str [symbol]: unified symbol of the market the order was made in
1105 :param dict [params]: extra parameters specific to the exchange API endpoint
1106 :returns dict: an `order structure <https://docs.ccxt.com/?id=order-structure>`
1107 """
1108 self.load_markets()
1109 request = {
1110 'orderId': int(id),
1111 }
1112 result = self.fetch_closed_orders(symbol, None, None, self.extend(request, params))
1113 return result[0]
1114
1115 def parse_order_status(self, status: Str):
1116 statuses = {

Callers

nothing calls this directly

Calls 3

fetch_closed_ordersMethod · 0.95
load_marketsMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected