MCPcopy Create free account
hub / github.com/ccxt/node-binance-api / bookPriceData

Function bookPriceData

deprecated/node-binance-api.js:2364–2375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2362 * @return {object} - symbols with their bids and asks data
2363 */
2364 const bookPriceData = data => {
2365 let prices = {};
2366 for (let obj of data) {
2367 prices[obj.symbol] = {
2368 bid: obj.bidPrice,
2369 bids: obj.bidQty,
2370 ask: obj.askPrice,
2371 asks: obj.askQty
2372 };
2373 }
2374 return prices;
2375 };
2376
2377 /**
2378 * Used by balance to get the balance data

Callers 1

apiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected