from fyers_apiv3 import fyersModel
client_id = "YYYYYYY-100"
access_token = "XXXXXXXXXXXXX"
# Initialize the FyersModel instance with your client_id, access_token, and enable async mode
fyers = fyersModel.FyersModel(client_id=client_id, token=access_token,is_async=False, log_path="")
data = {
"symbol":"NSE:NIFTY24D1224450CE",
"strikecount":1,
"timestamp": ""
}
response = fyers.optionchain(data=data);
print(response)
When I run this code I get this error message why?
Even Though I have tried with updated version of fyers
Hi @111762505856846349820
Apologies for the inconvenience. Could you please verify if you’re using the latest version of the package?
You can use the following commands to manage the fyers-apiv3 package:
To check the current version of the package, run:
pip show fyers-apiv3
To upgrade to the latest version, use:
pip install --upgrade fyers-apiv3
If you continue to face issues even after upgrading, please don’t hesitate to reach out. We’ll be happy to assist you in resolving them!
**Hi **Noufal Nazar
I have already checked on it and I have Upgraded the fyers packages but still the error continues.
Hi @111762505856846349820, could you please DM me your client id?
Hey Shruthi Shetty
**This is my Client Id : **CA00141