Historical API not working in both V2 and V3.

The Fyers historical API is returning a 500 response. It was working fine till the last week. No code/payload changes from my side. E.g.:

data = {
        "symbol":"NSE:SBIN-EQ",
        "resolution":"D",
        "date_format":"0",
        "range_from":"1690895316",
        "range_to":"1691068173",
        "cont_flag":"1"
}
print(fyers.history(data))

Result:

{'code': '500', 'data': JSONDecodeError('Expecting value: line 1 column 1 (char 0)')}

This issue is observed with both V2 and V3. Let me know how to solve the problem. Thanks.

Hey @0HP2VvWpYJ

The API’s will not work in V2 as the services are not active anymore , can you let us know what is the issue being faced in V3 as it is working for us

Hi @WWhYB2qrsx,
Thanks for your response. It seems like that the issue is only with the V2 API. My code still had some references for the V2 API in my code (even after switching to V3) which might be causing the above error to be thrown. Issue is now resolved. Thanks!

Thanks for the update @0HP2VvWpYJ !