Guide
BrokerMarket dataStocksOptionsFutures API key

FYERS API guide

FYERS is a trader-focused Indian broker with a free, well-documented API.

Last verified · Also known as FYERS API, fyers-apiv3

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. 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. 2

    Export the Python project

    Every project exports strategy.py, market_data.py, brokers.py and live.py. The strategy only sees bars, cash, positions and orders, never a vendor’s wire format.

  3. 3

    Plug in FYERS

    Implement the four adapter methods (account, positions, submit_market_order and 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

Independent guide. AlgoGP is not affiliated with FYERS. Limits, prices and availability change; confirm them in the official documentation. Nothing here is investment advice.

Build a strategy