Historical Data For Specific Period

When I’m trying to get 5 MIN Candle Data For ‘SBIN-EQ’ From 1700451900 (20-11-2023 9:15 AM) to** 1700452500 (20-11-2023 9:25 AM)**, the Fyers API gives the data for the whole day for that stock .

I want the data for the period that I have mentioned in the code and not for the whole trading day .

Thank You .

from fyers_apiv3 import fyersModel

client_id = ""
access_token = ""

# Initialize the FyersModel instance with your client_id, access_token, and enable async mode
fyers = fyersModel.FyersModel(client_id=client_id, is_async=False, token=access_token, log_path="")

data = {
    "symbol":"NSE:SBIN-EQ",
    "resolution":"5",
    "date_format":"0",
    "range_from":"1700451900",
    "range_to":"1700452500",
    "cont_flag":"1"
}

response = fyers.history(data=data)
print(response)

**OUTPUT : **

Hey
I checked from my side for same parameter.
It is working fine.
Can you check once again and let us know

I ran the same code I got the desired output , but for yesterday’s date .

And when running the same code but for today’s 9:15 to 9:25 epoch values it gives me the whole day that it has for the intraday , please refer to below image :

Hi this is expected @marquis.vso1na4x

You have handle this on your end.