import upstox_client
from upstox_client.rest import ApiException
api_version = ‘2.0’
api_instance = upstox_client.HistoryApi()
instrument_key = ‘NSE_FO|53077’
interval = ‘1minute’
to_date = ‘2024-10-18’
from_date = ‘2024-10-17’
try:
api_response = api_instance.get_historical_candle_data1(instrument_key, interval, to_date,from_date, api_version)
print(api_response)
except ApiException as e:
print(“Exception when calling HistoryApi->get_historical_candle_data: %s\n” % e)
this is my code in this i’m not getting the current day’s historical data please give me solution asap