Skip to main content

TradeLyser CSV Template: Import Trades from Any Broker

If your broker isn't supported for Auto Sync, or its trade file isn't recognised, the TradeLyser CSV template is the reliable fallback. You list each executed order on one row (symbol, buy or sell, quantity, price and time) and TradeLyser matches the orders into completed trades with P&L. Filling in a day's orders takes a few minutes.

With the template you can:

  • Journal trades from any Indian broker, including equity, futures and options.
  • Fix a broker export that the import wizard can't read.
  • Add old trades in bulk instead of one by one.

What you need​

RequirementWhere to get it
An account in TradeLyser for these tradesAccounts → Add Account. Any import method works.
Your executed orders (trade date and time, price, quantity)Your broker's tradebook or contract notes
A spreadsheet appExcel, Google Sheets or any app that saves CSV
Delete the sample rows first

The downloaded template contains about 20 sample orders (equity, options and futures). Delete every sample row before you add your own, or they will be imported into your account.

Step 1: Open Import Template​

The Import Template screen in TradeLyser with Download CSV Template, Choose File, field descriptions and symbol guidelines

  1. Open Accounts.
  2. Open the ⋯ actions menu on the account you want to import into.
  3. Choose Import Template. The Import Template page opens with three stages: Template, Preview and Import.

Step 2: Download and fill in the template​

  1. Click Download CSV Template. The file is saved as standard_trade_import_template.csv.
  2. Open it, delete the sample rows and keep the header row exactly as it is.
  3. Add one row per executed order (each buy and each sell is its own row).
  4. Save the file as CSV. You can also upload .xlsx or .xls; only the first sheet is read.

Template columns​

ColumnRequiredFormat
symbol_nameYesEquity: RELIANCE. Futures: NIFTY25JANFUT. Options: NIFTY25013024500CE. See the symbol rules below.
actionYesBUY or SELL (B and S also work, in any case)
quantityYesNumber of units, greater than 0
priceYesExecution price, greater than 0
timestampYesDD/MM/YYYY HH:mm:ss in IST, for example 24/10/2025 09:15:30
feesNoBrokerage in ₹
taxesNoTaxes in ₹
slippageNoSlippage cost in ₹
product_typeNoCNC, MIS or NRML
broker_order_idNoYour broker's order reference
expiryNoFor F&O, YYYY-MM-DD
strikeNoStrike price for options
exchangeNoNSE, BSE and so on
order_typeNoMARKET, LIMIT and so on

Sample rows​

symbol_name,action,quantity,price,timestamp,fees,taxes,slippage,product_type,broker_order_id,expiry,strike,exchange,order_type
HDFCBANK,BUY,50,1650.50,15/01/2025 09:20:15,8.50,4.25,1.00,CNC,ORD001,,,NSE,MARKET
HDFCBANK,SELL,50,1662.00,15/01/2025 14:05:40,8.50,4.25,1.00,CNC,ORD002,,,NSE,LIMIT
NIFTY25013024500CE,BUY,75,125.50,15/01/2025 10:02:11,20.00,10.00,3.00,NRML,ORD003,2025-01-30,24500,NSE,MARKET

Leave optional cells empty when you don't have the value, but keep every column.

Symbol rules​

  • Equity: the exact NSE or BSE symbol, such as RELIANCE, HDFCBANK or INFY.
  • Futures: symbol + two-digit year + three-letter month + FUT, such as NIFTY25JANFUT or BANKNIFTY25FEBFUT.
  • Options: symbol + YY + MM + DD expiry + strike + CE or PE, such as NIFTY25013024500CE (Nifty, 30 January 2025, 24500 call). The same format is used for weekly and monthly options.
  • MCX and currency: use your broker's symbol format, and keep it the same across all rows.

Rules that prevent import errors​

  • No commas inside values. Write 1650.50, not 1,650.50. The file is split on commas.
  • Quantity is in units, not lots. For one lot of an option with a lot size of 75, enter 75.
  • Keep timestamps as text. Spreadsheet apps often reformat dates. Format the timestamp column as text so it stays DD/MM/YYYY HH:mm:ss.
  • Header names must match exactly (lowercase, with underscores). If a required header is missing, you see Missing required columns.
  • Rows with an empty symbol, or a quantity or price of zero or less, are skipped.
  • If fees is empty, the account's default fee is used. If the account has Calculate Tax Automatically turned on, taxes are calculated for you instead of using the taxes column.

Step 3: Upload, preview and import​

  1. Back on the Import Template page, click Choose File and select your file.
  2. Check the CSV Preview. It shows how many rows were read.
  3. Click Show Mapping to see each order the way it will be saved.
  4. Optionally tick Exclude Fees, Exclude Taxes or Exclude Slippage to record those amounts as ₹0. They are ticked automatically if the account is set to exclude them.
  5. Click Import Trades. A progress bar runs while the orders are processed, then you see how many orders were processed and trades completed, and TradeLyser returns you to Accounts.

Click the header refresh icon, then open the Trades Log to check the result. Each import also appears in Settings → Sync History.

caution

Imported orders count towards your plan's monthly trade-import allowance. When a Free Trial allowance is used up, Import Template shows (Trade limit reached).

Troubleshooting CSV template imports​

ProblemFix
Missing required columnsOne of symbol_name, action, quantity, price or timestamp is missing or renamed. Copy the header row from a fresh template.
Error parsing fileSave the file as CSV (comma separated) or Excel and try again.
Fewer orders than rowsBlank rows and rows with zero quantity or price are skipped.
Option P&L is far too large or smallCheck that quantity is in units, not lots.
Trades open instead of closedEach buy needs a matching sell row (or the reverse). Unmatched orders stay in Open Positions.
Trades land on the wrong datesWrite timestamps day first (DD/MM/YYYY HH:mm:ss) in IST, and make sure your spreadsheet hasn't reformatted them.

For more, see CSV import errors.

Frequently asked questions​

Where do I download the TradeLyser CSV template?​

On Accounts, open an account's ⋯ menu, choose Import Template and click Download CSV Template.

Can I import an Excel file instead of CSV?​

Yes. The template upload accepts .csv, .xlsx and .xls, as long as the first sheet uses the template headers.

Should I use the template or my broker's file?​

Use your broker's file with Import Trade if TradeLyser has a dedicated format for it (Zerodha, Fyers, Dhan, 5paisa, NeoStox and RMoney). Use the template when your broker's file isn't recognised.

Can I import F&O trades with the template?​

Yes. Use the futures and options symbol formats above and fill in expiry, plus strike for options.

Next steps​