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 :

1
3 replies