| 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]) { |
no outgoing calls
no test coverage detected