Binance URL API historical klines and website are different

Hi all,

Seen something odd here screenshot below shows the python-binance result for get_historical_klines, the URL response and the value read from the website for the candles at the shown times.

Why should there be any disparity?

URL:

url = “https://api.binance.com/api/v3/klines

response = requests.get(url, params={“symbol”: symbol, “interval”: interval, “limit”: limit, “startTime”: start_time, “endTime”: end_time})

The API accepts timestamps in UTC, while the website displays candlesticks in your local time zone. That’s mostly likely the reason for the discrepancy.

Also, IIRC the website uses /api/v3/uiKlines endpoint, not /api/v3/klines. But I think they produce the identical results for BTCTUSD for that time range.