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

Method parse_order_book_bids_asks

python/ccxt/base/exchange.py:4997–5002  ·  view source on GitHub ↗
(self, bidasks, priceKey: IndexType = 0, amountKey: IndexType = 1, countOrIdKey: IndexType = 2)

Source from the content-addressed store, hash-verified

4995 return result
4996
4997 def parse_order_book_bids_asks(self, bidasks, priceKey: IndexType = 0, amountKey: IndexType = 1, countOrIdKey: IndexType = 2):
4998 bidasks = self.to_array(bidasks)
4999 result = []
5000 for i in range(0, len(bidasks)):
5001 result.append(self.parse_order_book_bid_ask(bidasks[i], priceKey, amountKey, countOrIdKey))
5002 return result
5003
5004 def fetch_l2_order_book(self, symbol: str, limit: Int = None, params={}):
5005 orderbook = self.fetch_order_book(symbol, limit, params)

Callers 1

parse_order_bookMethod · 0.95

Calls 4

to_arrayMethod · 0.95
rangeFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected