Api futures kline data is not matching actual data in website

I am trying to get futures kline data for ADABUSD but data I got is not matching actual data shown in website. It is affecting RSI calculations too much and spoling my strategy. Is there any solution ? Or What I am doing wrong
I am using the following function in python.

client.futures_historical_klines(…)

can you please give us the data you seeing on the UI?

thanks

same here using client.futures_historical_klines(). any idea guys? thanks

Hi,

I’ve been struggling with the same issue. I had no solution, but the workaround was stop using the Client class and instead of this get the info directly from the Endpoint:

url = ‘https://fapi.binance.com/fapi/v1/klines
params = {
‘symbol’: ‘BTCUSDT’,
‘interval’: ‘30m’
}
response = requests.get(url, params=params)
df = pd.DataFrame(response.json(), columns=[‘Open time’, ‘Open’, ‘High’, ‘Low’, ‘Close’, ‘Volume’, ‘Close time’
, ‘Quote asset volume’, ‘Number of trades’, ‘Taker buy base asset volume’, ‘Taker buy quote asset volume’, ‘Ignore’])
df[‘Open time’] = pd.to_datetime(df[‘Open time’]+10006060, unit = ‘ms’)
df[‘Close time’] = pd.to_datetime(df[‘Close time’]+10006060, unit = ‘ms’)
print(df)

I had to add some milliseconds (1h) in order to correct the time stored in the dataframe and align it with my local time.

Hope it helps!