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

Method fetch_open_order

python/ccxt/async_support/cex.py:1080–1096  ·  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

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

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