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
| Requirement | Where to get it |
|---|---|
| An account in TradeLyser for these trades | Accounts → Add Account. Any import method works. |
| Your executed orders (trade date and time, price, quantity) | Your broker's tradebook or contract notes |
| A spreadsheet app | Excel, Google Sheets or any app that saves CSV |
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

- Open Accounts.
- Open the ⋯ actions menu on the account you want to import into.
- Choose Import Template. The Import Template page opens with three stages: Template, Preview and Import.
Step 2: Download and fill in the template
- Click Download CSV Template. The file is saved as
standard_trade_import_template.csv. - Open it, delete the sample rows and keep the header row exactly as it is.
- Add one row per executed order (each buy and each sell is its own row).
- Save the file as CSV. You can also upload
.xlsxor.xls; only the first sheet is read.
Template columns
| Column | Required | Format |
|---|---|---|
symbol_name | Yes | Equity: RELIANCE. Futures: NIFTY25JANFUT. Options: NIFTY25013024500CE. See the symbol rules below. |
action | Yes | BUY or SELL (B and S also work, in any case) |
quantity | Yes | Number of units, greater than 0 |
price | Yes | Execution price, greater than 0 |
timestamp | Yes | DD/MM/YYYY HH:mm:ss in IST, for example 24/10/2025 09:15:30 |
fees | No | Brokerage in ₹ |
taxes | No | Taxes in ₹ |
slippage | No | Slippage cost in ₹ |
product_type | No | CNC, MIS or NRML |
broker_order_id | No | Your broker's order reference |
expiry | No | For F&O, YYYY-MM-DD |
strike | No | Strike price for options |
exchange | No | NSE, BSE and so on |
order_type | No | MARKET, 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,HDFCBANKorINFY. - Futures: symbol + two-digit year + three-letter month +
FUT, such asNIFTY25JANFUTorBANKNIFTY25FEBFUT. - Options: symbol +
YY+MM+DDexpiry + strike +CEorPE, such asNIFTY25013024500CE(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, not1,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
timestampcolumn as text so it staysDD/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
feesis 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 thetaxescolumn.
Step 3: Upload, preview and import
- Back on the Import Template page, click Choose File and select your file.
- Check the CSV Preview. It shows how many rows were read.
- Click Show Mapping to see each order the way it will be saved.
- 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.
- 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.
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
| Problem | Fix |
|---|---|
| Missing required columns | One of symbol_name, action, quantity, price or timestamp is missing or renamed. Copy the header row from a fresh template. |
| Error parsing file | Save the file as CSV (comma separated) or Excel and try again. |
| Fewer orders than rows | Blank rows and rows with zero quantity or price are skipped. |
| Option P&L is far too large or small | Check that quantity is in units, not lots. |
| Trades open instead of closed | Each buy needs a matching sell row (or the reverse). Unmatched orders stay in Open Positions. |
| Trades land on the wrong dates | Write 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.