Empty Kline API return

Hi.

I am trying to access kline api but when I add startTime and endTime, I receive empty result.
E.g.) This works well:
https://api.binance.us/api/v3/klines?symbol=ETHUSDT&interval=1s&limit=1000
But not this one:
https://api.binance.us/api/v3/klines?symbol=ETHUSDT&interval=1m&limit=1000&startTime=1676118000&endTime=1676178000

Any comments would be really helpful

Hi it’s because you need to use milliseconds instead of seconds.

Try 1676118000000 as startTime and 1676178000000 as endTime:

https://api.binance.us/api/v3/klines?symbol=ETHUSDT&interval=1m&limit=1000&startTime=1676118000000&endTime=1676178000000

Wow Thank you so much!!