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

Function symbolDepthInit

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

Source from the content-addressed store, hash-verified

5666 };
5667
5668 let symbolDepthInit = symbol => {
5669 if (typeof Binance.depthCacheContext[symbol] === 'undefined') Binance.depthCacheContext[symbol] = {};
5670 let context = Binance.depthCacheContext[symbol];
5671 context.snapshotUpdateId = null;
5672 context.lastEventUpdateId = null;
5673 context.messageQueue = [];
5674 Binance.depthCache[symbol] = { bids: {}, asks: {} };
5675 };
5676
5677 let assignEndpointIdToContext = (symbol, endpointId) => {
5678 if (Binance.depthCacheContext[symbol]) {

Callers 2

depthCacheStreamMethod · 0.85
apiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected