Register
Broker integrationFyers API

Fyers Algo Trading with QuantPower

Fyers algo trading with QuantPower runs your own strategy rules on your Fyers account through the Fyers API, the broker's official trading API. You activate your own API app, whitelist your static IPs with Fyers and sign in on Fyers' own page every trading day, and your funds and securities stay with Fyers.

What you need
  1. 01A Fyers trading account, with F&O enabled if you trade options or futures.
  2. 02Your own Fyers API app, activated in the Fyers API dashboard, with its App ID and secret.
  3. 03QuantPower's static IPs whitelisted with Fyers for that app. Orders from any other address are rejected.
  4. 04Your Fyers login with two-factor authentication, completed once every trading day on Fyers' own page.
  5. 05QuantPower tokens for live algos. A live algo costs 200 tokens per 28 days, a Forward test 100 and a backtest 2 tokens (1 token = ₹1, GST extra). Charts, the option chain, the screener and the strategy builder are free. See pricing.

Since 1 April 2026, Fyers accepts API orders only from an activated API app mapped to a whitelisted static IP, and at most 10 orders a second. Sessions no longer renew themselves: you complete two-factor authentication once every trading day. QuantPower is built around those rules. Every account comes with two static IPs at no charge, your Fyers app keys are stored encrypted, and every order, from a manual tap or an algo, goes through one order path with the same risk checks before it reaches Fyers.

A short history of API trading at Fyers

Algorithmic trading in India began with institutions. SEBI allowed direct market access for institutional clients in 2008 and published its first guidelines on algo trading in 2012, which made brokers responsible for checking every algo order before it reached the exchange.1 Retail traders came later, through the trading APIs that discount brokers opened in the second half of the 2010s. Fyers, a Bengaluru broker, built its business around active traders and offered its API to clients alongside its trading apps, with documentation and a developer community of its own.2

For years a retail API connection needed little more than an app key and a login. That changed with SEBI's circular of 4 February 2025 on safer participation of retail investors in algorithmic trading, which tied API orders to a static IP registered with the broker, required a daily login, set a limit of 10 orders a second for algos that are not registered, and made the broker responsible for every algo order that passes through it. After a glide path, the framework applied to every broker from 1 April 2026.3 Fyers rebuilt its API onboarding for it: a new app activation step with a new App ID, an IP whitelist for each app, and sessions that end every day instead of renewing through a refresh token.4

How QuantPower connects to Fyers

PartHow it works
Sign-inRedirect sign-in: you tap Sign in in QuantPower, log in on Fyers' own page with your two-factor code and come back. Your Fyers password, PIN and codes never touch QuantPower
Your app keysYour Fyers App ID and secret, entered once, sent over https, stored encrypted and never shown again
Order routeEvery order goes through QuantPower's one order path, with its risk checks, then to Fyers through the Fyers API
Static IPs2 static IPs free with every QuantPower account, a primary and a backup. If the forwarding proxy is down, orders are held, never sent from another address
PricesLive prices come from your Fyers connection; with no broker connected, QuantPower shows no live prices
SessionA Fyers session ends every day, so you sign in once each trading day
MoneyYour funds, shares and positions stay with Fyers. QuantPower holds no money

Fyers' API dashboard is where the IPs are whitelisted. Any broker-specific step is shown in QuantPower's broker connection screen.

How to connect Fyers to QuantPower

  1. Open the API dashboard. In Fyers Web, go to the API dashboard and open your app, or create one.
  2. Set the redirect URL and permissions. Enter the redirect URL that QuantPower shows on its Fyers connect screen. For permissions, select Order Placement and Market Data. In Fyers' API docs, Order Placement also covers reading orders, positions, holdings and funds, and Market Data covers quotes.5
  3. Whitelist the static IPs. The Fyers row in QuantPower shows your static IPs. Enter them in the app's IP whitelist exactly as shown.
  4. Activate the app. Click Activate. Activation gives you a new App ID and a secret; app credentials from before the new rules are rejected.
  5. Add the app in QuantPower. Open Brokers, choose Fyers and enter your Fyers client ID, the App ID and the secret. QuantPower asks for your tap, then sends the keys once over https; they are stored encrypted and never shown again.
  6. Sign in. Tap Sign in on the Fyers row. Fyers' login page opens. Log in with your client ID and the two-factor check Fyers asks for, approve access, and you return to QuantPower.
  7. Check the account. Your funds, holdings, positions and orders should appear as Fyers holds them.
  8. Test before going live. Run a new strategy in forward test with test money first, then switch it on live with a small size.

QuantPower's checklist for every broker, including segments, margins and the static IP, is in broker connection requirements.

Fyers API rules since April 2026

How an algo order reaches the exchange: your strategy in QuantPower, QuantPower's order path and risk checks, your static IP registered with your broker, your broker's checks, then the exchange (illustration)

SEBI's framework for retail algo trading has applied to every broker since 1 April 2026, and it sets the terms for Fyers algo trading. Fyers' support pages explain the details.4

RuleWhat it means on Fyers
Your own API appOrders are accepted only from an activated app with the new App ID; old app credentials are rejected
Whitelisted static IPOrders must come from an IP whitelisted for your app; traffic routed through a VPN, proxy or other address is rejected
Daily loginTwo-factor authentication once every trading day; sessions that renew through a refresh token are no longer supported
Order rateAt most 10 orders a second; faster algos must be registered with the exchange through the broker
Market ordersConverted to market price protection (MPP) orders, which fill only within a set range of the last price
Family accountsOne static IP per user; close family members can share one after a declaration and a KYC check

QuantPower is trading software. It is not a stockbroker or a SEBI-registered investment adviser or research analyst, and it gives no tips, calls or buy and sell advice. The strategies it runs on your Fyers account are your own rules, fully visible to you, and Fyers checks every order for price, quantity, margin and order rate before it reaches the exchange. Ready-made strategy templates, such as straddles and iron flies, load into the strategy builder; you edit and run them as your own strategy.

Every trading day

Fyers ends an API session every day, so each trading day starts with a sign-in.

  • Sign in before the market opens. Tap Sign in on the Fyers row and log in on Fyers' page. The row shows "signed in" and when the session ends.
  • Algos that enter later today switch on without the sign-in, and their card says "Sign in to your broker before the entry". If the entry comes and you have not signed in, the entry is refused with the reason.
  • Algos that would enter now cannot be switched on live while Fyers is signed out; the switch-on is refused and asks you to sign in.
  • Nothing signs in for you. QuantPower never stores your Fyers password and never logs in on your behalf.
  • If Fyers does not answer, risk checks refuse new orders. "No answer" is never read as "no positions".

A short routine: sign in at about 9:00 am, check that the funds figure matches Fyers, and glance at the algo cards for anything waiting. On expiry day, check the margin for short index options expiring that day, which carry an extra exposure margin.

What QuantPower can and cannot do on your Fyers account

QuantPower canQuantPower cannot
Show your funds, holdings, positions and orders as Fyers holds themWithdraw money from your Fyers account
Place, modify and cancel orders that you or your algos sendChange your bank account, address or nominee
Run algos that enter and exit by your rules once you switch them onSee the password, PIN or code you type on Fyers' page
Square off positions when your MTM stop loss or Smart Exit is hitPlace an order from an AI app without your confirmation
Refuse new orders once your daily loss limit is reachedSend orders from any address other than your static IPs
Stop trading in a segment until its next session with the kill switchTrade after your Fyers session has ended

The safety controls cover your whole QuantPower account. If you connect Fyers and another broker, the daily loss figure adds up both, and each position's exit goes to the broker that holds it.

Market data from Fyers

QuantPower's prices come from your connected broker. With Fyers, that means the quotes and candles your API app is allowed to receive under its Market Data permission. QuantPower turns the live ticks into 1-minute bars and reads history from Fyers' candle service when a chart or a backtest needs it. Without the Market Data permission, you can still place orders and see positions, but charts, the option chain, signals and algos have no live prices. Choose both permissions when you set up the app.

Your Fyers account inside QuantPower

Once connected, QuantPower's trading screens show your Fyers account as Fyers holds it:

  • Positions show today's positions with their M2M, per broker, and can be grouped by the strategy that opened them. You can convert a position's product or exit it. Exit all closes everything, or one segment, and asks for your tap and your second factor.
  • Holdings show your Fyers portfolio with profit and loss. A holding can be pledged for margin.
  • Funds show margin, collateral, cash and what can be withdrawn, as reported by Fyers. Adding or withdrawing money stays a Fyers task.
  • Orders show today's orders from every source: manual orders, baskets, GTT, the Scalper, algos and signals, with a Strategy column that shows which algo placed each order.
  • GTT orders wait for a trigger price for up to 365 days, with up to 100 active at a time.

Manual trades and algo trades travel the same order path, so one kill switch and one daily loss limit cover both. You can trade from the chart as well: your Fyers orders, positions and GTT triggers show as lines on the price, and every action opens the order sheet for your tap.

Order rules at Fyers

Fyers applies its own checks on top of the exchange's. Build your strategies with them in mind:

  • Stop-loss market orders in options. The NSE does not accept SL-M orders in options.6 Use stop-loss limit orders for option stops, with a buffer between the trigger and the limit.
  • Market orders. Fyers converts market orders from the API into market price protection orders, which fill only within a set range of the last price. An order outside that range is not filled. Limit orders priced near the best bid or ask give you control of the price.
  • Order rate. At most 10 orders a second. A short straddle sends two orders at entry and an iron condor four; QuantPower's order path sends one order at a time per leg, so a single algo stays well inside the limit.
  • Freeze quantity. Orders above the exchange's freeze limit for a contract are split automatically, and iceberg orders let you split a large order into 2 to 50 legs sent one at a time.

QuantPower's algo exits are market orders that only reduce a position. Where Fyers does not fill an exit within its price protection range, the algo's card shows the reason, and an exit that was refused is tried again up to 8 times with a growing gap.

A worked example: a Bank Nifty short strangle on Fyers

Take a weekly strangle on Bank Nifty: sell one lot of the call and the put two strikes out of the money at 9:30 am, with a combined stop-loss of ₹3,000 and an exit at 3:15 pm.

  1. In the algo builder, load the Short Strangle template. It becomes your own algo, with every rule visible.
  2. Set the call leg to "OTM 2" and the put leg to "OTM 2", current expiry, one lot each. Each entry picks fresh strikes from the price at 9:30 am.
  3. Set the entry time to 9:30 am, the exit time to 3:15 pm and an M2M stop of ₹3,000 for the whole algo.
  4. Add a bought wing on each side if you want the worst case capped. The algo sends the bought legs first, so a refused wing never leaves a sold option uncovered.
  5. Run it in Forward test for a few weeks, then switch it on live and pick Fyers as the broker.

What it costs: 200 tokens per 28 days for the live algo, with orders unlimited. At Fyers, each executed order pays Fyers' brokerage under your plan, plus STT, which since 1 April 2026 is 0.15% of the premium on every option sale,7 exchange charges, stamp duty and GST.

A worked example: a stock signal on Fyers

Take a rule on HDFC Bank: when the 14-period RSI on 15-minute candles crosses above 30, buy 100 shares intraday, with a 1% stop-loss and a 2% target.

  1. Create a signal with the condition on HDFC Bank, checked on closed 15-minute candles.
  2. Choose One-touch: when it fires, you get a notice and the order is ready, and you place it with one touch. Or arm it as Auto: the signal places the order itself, with every risk check.
  3. Set the order: buy 100 shares, intraday, limit price near the last traded price.

A signal that places its own order costs no tokens. Each executed order pays Fyers' brokerage and the statutory charges on equity intraday trades.

A worked example: a chart alert to Fyers

If you chart on Arth.live, keep doing so. Create a webhook in QuantPower and link it to an algo, then link your Arth.live price alert to it, or have your own script call the webhook's URL. When the alert fires during market hours, the webhook switches the linked algo on for today and enters now; an exit alert stops it and squares off. The orders go to Fyers from your static IPs, and the hit log shows each alert and what it did. A webhook can link up to 10 algos, and you can have up to 20 webhooks. Webhooks are free; the linked algo pays its normal 200 tokens per 28 days.

Running several strategies on one Fyers account

  • Limits. Up to 50 saved algos, 20 running at a time, and up to 6 legs in a running algo.
  • One broker per algo. When you switch an algo on live, you pick the broker, and every leg goes there. A restart stays at the same broker.
  • A cap on orders. You can set a maximum number of orders a day for the whole account.
  • Overlap. If two algos trade the same index, their positions add up at Fyers. Check the combined margin before switching both on.
  • Costs. Each live algo is 200 tokens per 28 days regardless of how many orders it sends.

Costs to plan for

Three kinds of cost apply to algo trading on Fyers through QuantPower:

  • QuantPower: 200 tokens per 28 days for each live algo, with orders unlimited inside it; 100 tokens for an algo in Forward test; 2 tokens a backtest after the first 10 each week. Signals that place their own orders, webhooks, charts, the option chain and the static IPs cost no tokens.
  • Fyers: brokerage on every executed order under your Fyers plan, and any charges Fyers sets for its API or data. Check Fyers' current pricing page; these change.
  • The exchange and the government: STT, exchange transaction charges, the SEBI fee, stamp duty and GST, the same at every broker. The brokerage calculator adds them up for any trade.

For an option strategy that trades every day, the second and third lines are usually much larger than the first.

A checklist before your first live algo on Fyers

  1. F&O is active on your Fyers account, and the margin for the strategy is free.
  2. Your Fyers app is activated, with both Order Placement and Market Data permissions, and QuantPower shows live prices.
  3. QuantPower's static IPs are saved in your app's IP whitelist.
  4. You signed in today, and the Fyers row shows "signed in".
  5. The algo has run in Forward test for at least a few weeks, and you have read its activity log.
  6. Your daily loss limit and Smart Exit are set for the account.
  7. The first live run uses the smallest size, one lot.

When something goes wrong

What you seeLikely causeWhat to do
"Sign-in needed" on the Fyers rowToday's session has not started, or yesterday's has endedTap Sign in and log in on Fyers' page
Orders rejected for credentialsThe app was not activated, or old app credentials are in QuantPowerActivate the app and enter the new App ID and secret
Orders rejected for IPThe static IPs are not whitelisted, or were entered wronglyCompare the IPs in the Fyers row with the app's whitelist
Market order not filledThe price moved outside Fyers' price protection rangeUse a limit order near the best bid or ask
SL-M order rejected in optionsSL-M is not allowed in optionsUse a stop-loss limit order
No prices in QuantPowerThe app lacks the Market Data permission, or you are signed outCheck the permissions and sign in
Segment not enabledF&O or commodity is not active on your Fyers accountActivate the segment with Fyers

Fyers lists three usual causes of failed API orders: old app credentials, an app that has not been activated, and requests from an IP other than the whitelisted one.4 Check all three together. If an algo stops, its card and activity log say why in one plain line.

What the SEBI rules mean for a Fyers user

  • Your own code. If you write your own program against the Fyers API and send fewer than 10 orders a second, you do not need to register the algo with the exchange. You do need a static IP whitelisted with Fyers.
  • Algos offered by a platform. Strategies that a platform offers to retail traders reach them through a broker under the exchange's rules, with each strategy registered and its orders tagged.

In QuantPower every rule of every algo is visible to you, and the activity log keeps one plain line for each entry, exit, change and refusal.

Building Fyers strategies with Quanty and your own AI app

  • Quanty, the AI assistant in the QuantPower app, can build a strategy from your description, backtest it and run a risk check that flags a missing stop-loss or an unhedged sold option. It saves the algo switched off. Only you can switch it on.
  • Your own AI app, such as Claude or ChatGPT, can connect to your QuantPower account through Connect AI. With your permission it can read your Fyers positions and orders as QuantPower sees them, backtest your rules and prepare an order. A prepared order is placed only when you confirm it with a tap and your second factor.

Neither gives tips or recommends a strategy. Both are software, not advisers.

Moving from your own Fyers API script

In your scriptIn QuantPower
An auth-code login and a stored access tokenThe daily Sign in on the Fyers row
A server or home connection with a whitelisted IPThe static IPs included with your account
Code that picks strikesA rule leg set to ATM, OTM n, a premium or a delta, picked fresh at each entry
Loops that check stops and targetsStop-loss, target, trailing stop and M2M exits set on each leg and on the algo
Your own logsThe activity log on the algo card

If you prefer to keep your code, QuantPower and your script can use the same Fyers account, as long as they never trade the same signal. Note that each Fyers app has its own IP whitelist; check with Fyers how your second tool's app should be set up.

Security

  • Your password is typed only on Fyers' page.
  • Your App ID and secret are sent once over https, stored encrypted, and never shown again.
  • Sensitive actions in QuantPower, such as exit all, the kill switch or confirming an order prepared by an AI app, ask for your second factor.
  • Your orders leave only from your static IPs. If the proxy that carries them is down, orders are held, not sent another way.
  • Your money never passes through QuantPower.

Where Fyers algo trading is going

The April 2026 framework has made API trading at Fyers a supervised activity: activated apps, whitelisted IPs, daily sign-ins and orders that Fyers is responsible for.3 For a trader, the setup is stricter but clearer. The parts that used to break a home-made setup, a changing IP or a session that expired overnight, are now handled the same way for everyone. Testing a strategy before real money, and setting limits for the whole account, remain your job.

Start with 500 free tokens

Connect your broker, build a strategy and test it on paper before a single live order goes out.

Frequently asked questions

Does QuantPower see my Fyers password?

No. You type your login details and two-factor code on Fyers' own page. QuantPower stores your App ID and secret encrypted, and the day's session.

Do I need a static IP for the Fyers API?

Yes. Fyers accepts orders only from an activated API app mapped to a whitelisted static IP. QuantPower includes two static IPs with every account.

Can my family share one static IP at Fyers?

Yes, for a spouse, dependent parents and dependent children. One member whitelists the IP, and the family sends Fyers a signed declaration with proof of relationship for a KYC check.

Why did Fyers change my market order?

Fyers converts market orders from the API into market price protection orders, which fill only within a set range of the last price. Use limit orders to control the price.

Do I have to log in to Fyers every day?

Yes. Fyers no longer supports sessions that renew through a refresh token, so you complete two-factor authentication once every trading day.

What happens to my Fyers algos if I forget to sign in?

An algo that would enter while you are signed out is refused, with the reason on its card. Algos that hold positions keep their stops and exit times once you sign in. Nothing signs in for you.

References

  1. SEBI, broad guidelines on algorithmic trading, 30 March 2012 (sebi.gov.in)
  2. Fyers: API documentation and developer community (fyers.in)
  3. SEBI, circular on safer participation of retail investors in algorithmic trading, 4 February 2025, and glide-path circular, 30 September 2025; NSE implementation standards, 5 May 2025 (sebi.gov.in, nseindia.com)
  4. Fyers, support articles on the SEBI rules for retail algo trading from 1 April 2026, activating the new API app, API order restrictions and a common static IP for family members (support.fyers.in) (checked 20 October 2026)
  5. Fyers API docs: creating an app and permission templates (fyers.in) (checked 20 October 2026)
  6. NSE, circular NSE/FAOP/49677 on discontinuation of stop-loss market orders in options, September 2021
  7. Finance Act, 2026: STT on options 0.15% of the premium from 1 April 2026 (indiabudget.gov.in)
Broker names are trademarks of their owners. Broker rules change, so check Fyers' current pages before you trade. This page is for information and is not investment advice. Trading involves substantial risk.