Open Mas313 opened 1 year ago
You need to use the binance.candlestick()
function with a limit of 100 to get the current candlestick and the last 99, but the problem is, I tried using it, I was actually unable to get it to work.
Try using my library binance-lib
instead, I'm working on v3.0.0
currently, which is coming out in the coming days. It has intellisense documentation for everything too.
I a using following code to get real-time candlestick data as long as the candle closes each minute
I get here also 7 to 8 packets of candlestick data when candle is not closed along with last packet containing candle close price. How I can modify the above code to get last say 100 candles close data when I start script for the first time then I can use above code to get the current candle close data.