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

Function getDepthCache

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

Source from the content-addressed store, hash-verified

2585 * @return {object} - the depth cache object
2586 */
2587 const getDepthCache = symbol => {
2588 if (typeof Binance.depthCache[symbol] === 'undefined') return { bids: {}, asks: {} };
2589 return Binance.depthCache[symbol];
2590 };
2591
2592 /**
2593 * Calculate Buy/Sell volume from DepthCache

Callers 2

depthVolumeFunction · 0.85
apiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected