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

Method fetch_order

python/ccxt/bitflyer.py:809–826  ·  view source on GitHub ↗

fetches information on an order made by the user https://lightning.bitflyer.com/docs?lang=en#list-orders :param str id: the order id :param str symbol: unified symbol of the market the order was made in :param dict [params]: extra parameters specific to the

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

Source from the content-addressed store, hash-verified

807 return self.fetch_orders(symbol, since, limit, self.extend(request, params))
808
809 def fetch_order(self, id: str, symbol: Str = None, params={}):
810 """
811 fetches information on an order made by the user
812
813 https://lightning.bitflyer.com/docs?lang=en#list-orders
814
815 :param str id: the order id
816 :param str symbol: unified symbol of the market the order was made in
817 :param dict [params]: extra parameters specific to the exchange API endpoint
818 :returns dict: An `order structure <https://docs.ccxt.com/?id=order-structure>`
819 """
820 if symbol is None:
821 raise ArgumentsRequired(self.id + ' fetchOrder() requires a symbol argument')
822 orders = self.fetch_orders(symbol)
823 ordersById = self.index_by(orders, 'id')
824 if id in ordersById:
825 return ordersById[id]
826 raise OrderNotFound(self.id + ' No order found with id ' + id)
827
828 def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
829 """

Callers

nothing calls this directly

Calls 4

fetch_ordersMethod · 0.95
ArgumentsRequiredClass · 0.90
OrderNotFoundClass · 0.90
index_byMethod · 0.80

Tested by

no test coverage detected