Getting this error (code 15) while fetching candle data using below code. It was working fine a week back.
fyers = fyersModel.FyersModel(client_id=client_id, is_async=False, token=access_token, log_path="")
current_time_1 = dt.datetime.now()
current_time_1 = current_time_1 - dt.timedelta(minutes=1)
start_time = current_time_1 - dt.timedelta(minutes=400)
start_time = start_time.replace(second=0, microsecond=0)
completed_minute_dt_epoch=str(int(current_time_1.timestamp()))
start_time_epoch = str(int(start_time.timestamp()))
data = {
"symbol":sym,
"resolution":"1",
"date_format":"0",
"range_from":start_time_epoch,
"range_to":completed_minute_dt_epoch,
"cont_flag":"1"
}
response = fyers.history(data=data)