Skip to Content
API ReferenceReportsTax P&L Report

Tax P&L Report

This API allows you to fetch your tax profit and loss for a financial year, defaulting to the current one.

USE CASE

Get a financial year's profit and loss grouped for tax filing: trading, short-term, long-term, futures and options.

Details

  • Fetches all tax profit & loss for a specified date range. If no date range is provided, it defaults to the current financial year.
  • Choose the year with fin_year. This report has no from_date or to_date fields, and without fin_year it uses the current financial year.
  • Narrow the rows with transaction_type: 0 all, 1 TRADING, 2 SHORTTERM, 3 LONGTERM, 4 Future_Book and 5 Option_Book.
  • The segment filter is called segment here: 0 all, 1 equity, 2 equity derivatives, 3 mutual funds, 4 currency derivatives and 5 commodity derivatives. There is no exchange filter.
  • Results are paged: page_size defaults to 100 and page_no to 1. The sample response also returns total_count, and its summary_data includes net_ltcg and net_stcg.
  • Rate limits differ between the Standard and Prime plans. See Plans & rate limits.

Request Attributes - For fetching tax profit & loss history

AttributeData TypeDescription
fin_yearstringThe financial year for fetching tax profit & loss history (default is the current financial year)
page_sizestringThe number of records to be fetched in one page (default is 100)
page_nostringThe page number to fetch (default is 1)
segmentstring
  • 0 → Includes all Segments [default]
  • 1 → Includes only Equity
  • 2 → Includes only Equity Derivatives
  • 3 → Includes Mutal Funds
  • 4 → Includes only Currency Derivatives
  • 5 → Includes only Commodity Derivatives
transaction_typestring
  • 0 → Includes all Types [default]
  • 1 → TRADING
  • 2 → SHORTTERM
  • 3 → LONGTERM
  • 4 → Future_Book
  • 5 → Option_Book

Response data attributes - For each tax profit & loss

AttributeData TypeDescription
symbol_namestringName of the symbol
transaction_typestringThe type of transaction
segmentstringMarket category where the security was traded or invested in.
buy_datestringDate when the stock, contract, or MF units were purchased.
buy_qtyfloatTotal quantity or units bought.
buy_ratefloatPrice per unit, share, or contract at which it was bought.
sell_datestringDate when the stock, contract, or MF units were sold.
sell_qtyfloatTotal quantity or units sold.
sell_ratefloatPrice per unit, share, or contract at which it was sold.
pnl_amountfloatProfit or loss amount from the specific trade or redemption.
total_daysintNumber of total calendar days between buy and sell date.
isinstringUnique identification number for the stock or mutual fund.
turnoverfloatTrade value considered for tax purposes based on transaction type.

Response summary attributes - For the summary of the tax profit & loss

AttributeData TypeDescription
gross_tax_pnlfloatThe gross tax profit & loss of the trade
net_tax_pnlfloatThe net tax profit & loss of the trade
taxable_intradyfloatThe taxable intraday profit & loss of the trade
taxable_futurefloatThe taxable future profit & loss of the trade
taxable_optionfloatThe taxable option profit & loss of the trade
realized_pnlfloatRealised profit or loss from positions that have been fully closed.
turnover_equityfloatTotal turnover from your equity trades.
turnover_fnofloatTotal turnover from your F&O trades.
total_chargesfloatTotal charges levied for all transactions in a year.
Last updated on