| 5105 | }; |
| 5106 | |
| 5107 | let futuresChartInit = symbol => { |
| 5108 | if (typeof Binance.futuresMeta[symbol] === 'undefined') Binance.futuresMeta[symbol] = {}; |
| 5109 | if (typeof Binance.futuresMeta[symbol][interval] === 'undefined') Binance.futuresMeta[symbol][interval] = {}; |
| 5110 | if (typeof Binance.futuresTicks[symbol] === 'undefined') Binance.futuresTicks[symbol] = {}; |
| 5111 | if (typeof Binance.futuresTicks[symbol][interval] === 'undefined') Binance.futuresTicks[symbol][interval] = {}; |
| 5112 | if (typeof Binance.futuresRealtime[symbol] === 'undefined') Binance.futuresRealtime[symbol] = {}; |
| 5113 | if (typeof Binance.futuresRealtime[symbol][interval] === 'undefined') Binance.futuresRealtime[symbol][interval] = {}; |
| 5114 | if (typeof Binance.futuresKlineQueue[symbol] === 'undefined') Binance.futuresKlineQueue[symbol] = {}; |
| 5115 | if (typeof Binance.futuresKlineQueue[symbol][interval] === 'undefined') Binance.futuresKlineQueue[symbol][interval] = []; |
| 5116 | Binance.futuresMeta[symbol][interval].timestamp = 0; |
| 5117 | } |
| 5118 | |
| 5119 | let handleFuturesKlineStream = kline => { |
| 5120 | let symbol = kline.s, interval = kline.k.i; |
no outgoing calls
no test coverage detected