Fyers integration: auto-sync your trading journal

Authorise Fyers once, let executions flow into TradeLyser after each session, and know how to handle expired access and expiry-day delays.

Karthikeyan Anbarasan

Founder, TradeLyser

Reviewed by Shankar Gajendran (CTO, TradeLyser) · Updated 18 Oct 2026

Login

Fyers OAuth

Segments

Cash · F&O · MCX

Fallback

Fyers CSV

Step by step

Fyers uses its third-party app authorisation. You log in with your Fyers details, approve read access to trade history for TradeLyser, and come back for the first import. Depending on your settings, Fyers may ask for an app PIN or TOTP.

  1. Choose Fyers in TradeLyser

    Go to Settings → Broker connections, pick Fyers from the broker picker and press Connect. If you hold both individual and corporate Fyers IDs, use the one with your NSE and BSE trading.

    TradeLyser "Choose broker, prop firm or trading platform" window with Fyers among the active brokers
    Figure 1. The broker picker. Fyers sits in the Active Brokers group.
  2. Log in on Fyers

    Complete the Fyers login on the redirect page and enter your PIN or 2FA code.

  3. Grant read access

    Allow read access to orders and trades. A journal does not need write access.

  4. Let the historical sync finish

    Return to TradeLyser and wait for the first import to complete.

  5. Check the last session

    Compare the fill count with the Trades tab of the Fyers order book before you tag.

What syncs from Fyers

What syncs

  • Executed orders: symbol, quantity, transaction type, product code and timestamps
  • Charges, when Fyers provides them
  • Smart and basket orders, as their individual fills
  • Partial exits, one row each

What does not sync

  • Parent names of smart and basket orders
  • Fyers crypto, which is outside the NSE sync scope
  • Expiry-week context. Add it as a tag.
  • Anything on a demat-only ID with no trading activity

Fyers product codes in your journal

Each imported order brings the symbol, quantity, transaction type, product code, timestamps and charges when Fyers provides them. The product code is the useful part: it separates intraday, margin and carry-forward trades so your tags can follow.

SegmentFyers contextHow to use it in TradeLyser
Equity deliveryCNCSwing and positional tags, kept out of intraday stats.
Intraday equity and indexIntraday productSame-day round trips. Note any auto square-off.
FuturesIndex and stock futuresSeparate tags for overnight NRML and intraday futures.
OptionsSingle and multi-leg, filled as legsTag the playbook and add an expiry-week tag yourself.

Smart orders and baskets resolve to individual fills, so the journal tracks what traded rather than the parent order name. Partial exits on a scalp show as several rows. Keep one tag across the legs of one planned trade.

Fyers quirks worth knowing

  • Fyers access expires. TradeLyser tells you to reconnect, and doing it before Monday review saves a blank week.
  • On heavy expiry days the API can be slow. Wait and retry off-peak, and only use CSV if the gap is still there after T+1.
  • Symbols can look different on Fyers Web and the app, but the imported symbol is consistent. Tag on what imported.
  • Fyers crypto sits outside the NSE sync scope. Connect the trading ID that holds your equity and F&O activity.
  • Corporate actions can change a symbol. Add a note when you compare results across years.
Active Accounts table listing each linked broker account with its connection, token status, sync method and last updated date
Figure 2. Active Accounts. The Token column shows when a connection needs re-approval, and Method shows Auto Sync or Import.
Rule of thumb
Fyers publishes its API, and some traders write scripts that store their fills. A script keeps executions; it does not keep tags, rule breaks or a weekly review. Use sync for the plumbing and spend the time on review.

After 3:30 p.m. with Fyers

  1. If the automatic sync has not run, press Sync Now and confirm the trade count.
  2. Tag strategies while Fyers Web is still open for reference, not from memory on the weekend.
  3. Flag rule breaks on winners as well as losers. Green P&L on Fyers does not mean the rules held.
  4. Each week, split MIS from NRML and index F&O from stock F&O. Once a month, check one day against the Fyers tax P&L export.

CSV fallback: Fyers reports

Use a CSV to bring years of Fyers history in for the first time, or to cover a known window when Fyers access is blocked for maintenance. After the backfill, let live sync carry on.

  1. In Fyers Web or the app, open reports and export trade history or P&L as CSV for the gap.
  2. Upload it through the CSV import in TradeLyser.
  3. Map trade date, symbol, buy or sell, quantity and price, since the headers differ from other brokers.
  4. Check the date range does not overlap synced days.

Trouble syncing?

Does Fyers API access cost extra for TradeLyser sync?

TradeLyser uses the standard Fyers third-party authorisation for read-only history, and you do not need to run your own API server. Check with Fyers for any account-level API policy.

Why did my Fyers sync stop after a couple of weeks?

Fyers access tokens expire. Reconnect from broker settings in TradeLyser. This is normal and does not mean the integration is broken.

Can I sync only F&O and skip equity?

Sync imports the whole trading ID. Separate equity from F&O with filters and tags in TradeLyser instead of at connection time.

Why do Fyers and TradeLyser totals differ by a small amount?

Compare one day’s fills line by line. Rounding, charges that post late or a partial sync usually explain small differences. Re-sync before trying a CSV import, which risks duplicates.

Fyers sync is slow on expiry day. What should I do?

Wait and retry off-peak. If the gap is still there after T+1, use a Fyers CSV export for just those dates.

Related guides