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

Method getDepthCache

src/node-binance-api.ts:3517–3520  ·  view source on GitHub ↗

* Gets depth cache for given symbol * @param {string} symbol - the symbol to fetch * @return {object} - the depth cache object

(symbol: string)

Source from the content-addressed store, hash-verified

3515 * @return {object} - the depth cache object
3516 */
3517 getDepthCache(symbol: string) {
3518 if (typeof this.depthCache[symbol] === 'undefined') return { bids: {}, asks: {}};
3519 return this.depthCache[symbol];
3520 }
3521
3522 /**
3523 * Calculate Buy/Sell volume from DepthCache

Callers 3

depthVolumeMethod · 0.95
sortBidsMethod · 0.95
sortAsksMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected