We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Often times depth data is required to be in array format. For example, when drawing charts: https://bfxdata.com/mobileSite/mobileGraphMarketDepthBTCUSD.php Data format: https://bfxdata.com/json/marketDepthBidsBTCUSD.json
For this reason I have added an array function to convert an object into an array:
array
binance.depth("BNBBTC", function(depth, symbol) { console.log(symbol+" bids", binance.array(depth.bids)); console.log(symbol+" asks", binance.array(depth.asks)); });