binance / binance-public-data

Details on how to get Binance public data
1.54k stars 476 forks source link

Timestamps are off by at least 14 seconds for kline data #14

Closed moritzgun closed 3 years ago

moritzgun commented 3 years ago

For BTCUSDT and ETHUSDT candlestick data for Feb 2018 is a little off. From line 10110 of the BTCUSDT 1m candles of Feb 2018 timestamps are wrong until line 11311. Same issue for about the same range in ETHUSDT. Im checking other symbols now to find out whether this happens for all symbols!

moritzgun commented 3 years ago

The same holds true for BNBUSDT, LTCUSDT and NEOUSDT starting from line 10110.

2pd commented 3 years ago

there is a gap from server side. Can be verified by : https://api.binance.com/api/v3/klines?symbol=BTCUSDT&interval=1m&startTime=1518049680000&limit=5

moritzgun commented 3 years ago

Thanks for the clarification. Is that gap going to be corrected or do I have to do it myself? How can i be sure that there are no other gaps like this in more recent candlestick data?

2pd commented 3 years ago

During the gap, it can be considered as no trading.

moritzgun commented 3 years ago

I see. So the files are not going to be corrected from your end?

moritzgun commented 3 years ago

Between 4th and 17th december 2017 the timestamps for BTCUSDT are also off.. Can you explain why this is the case? If it is to be considered as "no trading", why do the OHLC values seem to be correct and just off by some seconds?