Quick answer
FYERS API v3 is a free REST and WebSocket API for NSE, BSE and MCX: orders, positions, quotes, market depth and historical candles. You create an app to get an app id and secret, then complete an OAuth login each day to obtain an access token, which the official fyers-apiv3 Python SDK uses.
FYERS API at a glance
- Pricing
- Free API
- Availability
- Indian residents with a FYERS account
- Paper trading
- No sandbox
- Integration type
- OAuth login
- In AlgoGP
- Design and backtest in AlgoGP, connect the exported code
- Auth
- App id + secret, daily OAuth access token
- Price
- Free
- SDK
- Python
fyers-apiv3, Node
Build a FYERS strategy with AlgoGP
AlgoGP does not connect to FYERS natively yet. FYERS authenticates with a browser OAuth login and refreshable tokens, so it needs a one-time manual login step that generated code cannot do on its own.
- 1
Design and backtest in AlgoGP
Describe the strategy to the copilot and backtest it on years of normalized history. The result does not depend on any vendor.
- 2
Export the Python project
Every project exports
strategy.py,market_data.py,brokers.pyandlive.py. The strategy only sees bars, cash, positions and orders, never a vendor’s wire format. - 3
Plug in FYERS
Implement the four adapter methods (
account,positions,submit_market_orderand a candle fetcher) with FYERS’s SDK, or keep a built-in platform for paper trading and add FYERS when you go live.
Built-in brokers for the same markets: Alpaca, Tradier, Interactive Brokers, OKX.
FYERS API: frequently asked questions
Is the FYERS API free?
Yes, for FYERS customers.
Does the FYERS token expire daily?
Yes; generate a new access token each trading day.
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.
FYERS alternatives
- Zerodha Kite Connect API GuideIndia’s largest broker: Kite Connect REST and WebSocket APIs for NSE, BSE and MCX, with an access token minted by a daily login.
- Upstox API GuideUpstox Developer API: free REST and WebSocket trading and market data for Indian equities and F&O, with daily OAuth tokens.
- Angel One SmartAPI API GuideAngel One’s free SmartAPI for Indian equities, F&O and commodities: log in with client code, PIN and a TOTP, then trade over REST.
- Dhan (DhanHQ) API GuideDhanHQ API v2: free order APIs for Indian equities, F&O and commodities with a client id and access token; market data paid.
Independent guide. AlgoGP is not affiliated with FYERS. Limits, prices and availability change; confirm them in the official documentation. Nothing here is investment advice.