I have a piece of code to fetch option data which I was using in fyers-apiv2 and have recently migrated to v3
in v2, I had error handling enabled for common errors
if data['s'] != 'ok':
if data.get('code') == None:
print(data)
elif data['code'] == -300:
print('Skip')
pass
elif data['code'] == -10:
print(data)
print('Skip')
pass
I don't recall exactly what those error codes stand because the spreadsheet with explaination of error codes is no longer in the documentation. But I am sure that 1 of the error code was for missing data and 1 for non existing symbol
However in v3, this error handling did not prove to be useful. In this request, Fyers does not give error code at all.
Please provide any documentation/ error code list about how we can handle these errors