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

Method fetch_open_order

python/ccxt/cex.py:1079–1095  ·  view source on GitHub ↗

fetches information on an open 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 to

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

Source from the content-addressed store, hash-verified

1077 return self.fetch_orders_by_status('open', symbol, since, limit, params)
1078
1079 def fetch_open_order(self, id: str, symbol: Str = None, params={}):
1080 """
1081 fetches information on an open order made by the user
1082
1083 https://trade.cex.io/docs/#rest-private-api-calls-orders
1084
1085 :param str id: order id
1086 :param str [symbol]: unified symbol of the market the order was made in
1087 :param dict [params]: extra parameters specific to the exchange API endpoint
1088 :returns dict: an `order structure <https://docs.ccxt.com/?id=order-structure>`
1089 """
1090 self.load_markets()
1091 request = {
1092 'orderId': int(id),
1093 }
1094 result = self.fetch_open_orders(symbol, None, None, self.extend(request, params))
1095 return result[0]
1096
1097 def fetch_closed_order(self, id: str, symbol: Str = None, params={}):
1098 """

Callers

nothing calls this directly

Calls 3

fetch_open_ordersMethod · 0.95
load_marketsMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected