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

Function getSymbolKlineSnapshot

deprecated/node-binance-api.js:5886–5896  ·  view source on GitHub ↗
(symbol, limit = 500)

Source from the content-addressed store, hash-verified

5884 };
5885
5886 let getSymbolKlineSnapshot = (symbol, limit = 500) => {
5887 publicRequest(getSpotUrl() + 'v3/klines', { symbol: symbol, interval: interval, limit: limit }, function (error, data) {
5888 klineData(symbol, interval, data);
5889 //Binance.options.log('/klines at ' + Binance.info[symbol][interval].timestamp);
5890 if (typeof Binance.klineQueue[symbol][interval] !== 'undefined') {
5891 for (let kline of Binance.klineQueue[symbol][interval]) klineHandler(symbol, kline, Binance.info[symbol][interval].timestamp);
5892 delete Binance.klineQueue[symbol][interval];
5893 }
5894 if (callback) callback(symbol, interval, klineConcat(symbol, interval));
5895 });
5896 };
5897
5898 let subscription;
5899 if (Array.isArray(symbols)) {

Callers 2

chartMethod · 0.85
apiFunction · 0.85

Calls 5

publicRequestFunction · 0.85
getSpotUrlFunction · 0.85
klineDataFunction · 0.85
klineHandlerFunction · 0.85
klineConcatFunction · 0.85

Tested by

no test coverage detected