Before you start
- A FYERS account
Create your FYERS API key
- 1
Create an app
On myapi.fyers.in/dashboard create an app with a redirect URL.
- 2
Copy credentials
Save
FYERS_APP_IDandFYERS_SECRET_KEY. - 3
Log in daily
Generate today’s token with the SDK’s session model and store
FYERS_ACCESS_TOKEN.
Test the key
Before wiring the key into a strategy, make one request by hand. It separates “the key is wrong” from “my code is wrong”.
# pip install fyers-apiv3
import os
from fyers_apiv3 import fyersModel
fyers = fyersModel.FyersModel(client_id=os.environ["FYERS_APP_ID"], token=os.environ["FYERS_ACCESS_TOKEN"])
print(fyers.get_profile())s: ok confirms the token.Keep the credentials safe
- Store values in a password manager or a git-ignored
.env, never in code or notebooks you share. - In an AlgoGP project you can still add them under APIs & keys (encrypted at rest) and read them with
strategy_runtime.secrets.get("FYERS_APP_ID"). - Give each bot its own credential so you can revoke one without stopping the others.
FYERS_APP_ID=paste-your-value-here
FYERS_SECRET_KEY=paste-your-value-here
# FYERS_ACCESS_TOKEN=Design and backtest your FYERS strategy first
AlgoGP turns an idea into Python and tests it on years of history before you connect it to FYERS. The exported code keeps the broker behind four small adapter methods.
- AI copilot writes and revises the rules
- Backtests with realistic costs
- Exported Python ready to wire to FYERS
Free plan, no card required.
AlgoGP is not affiliated with FYERS. Menus get renamed from time to time; if a label differs, the official documentation has the current path.