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 nofrom_dateorto_datefields, and withoutfin_yearit 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
segmenthere: 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_sizedefaults to 100 andpage_noto 1. The sample response also returnstotal_count, and itssummary_dataincludesnet_ltcgandnet_stcg. - Rate limits differ between the Standard and Prime plans. See Plans & rate limits.
Request Attributes - For fetching tax profit & loss history
| Attribute | Data Type | Description |
|---|---|---|
fin_year | string | The financial year for fetching tax profit & loss history (default is the current financial year) |
page_size | string | The number of records to be fetched in one page (default is 100) |
page_no | string | The page number to fetch (default is 1) |
segment | string |
|
transaction_type | string |
|
Response data attributes - For each tax profit & loss
| Attribute | Data Type | Description |
|---|---|---|
symbol_name | string | Name of the symbol |
transaction_type | string | The type of transaction |
segment | string | Market category where the security was traded or invested in. |
buy_date | string | Date when the stock, contract, or MF units were purchased. |
buy_qty | float | Total quantity or units bought. |
buy_rate | float | Price per unit, share, or contract at which it was bought. |
sell_date | string | Date when the stock, contract, or MF units were sold. |
sell_qty | float | Total quantity or units sold. |
sell_rate | float | Price per unit, share, or contract at which it was sold. |
pnl_amount | float | Profit or loss amount from the specific trade or redemption. |
total_days | int | Number of total calendar days between buy and sell date. |
isin | string | Unique identification number for the stock or mutual fund. |
turnover | float | Trade value considered for tax purposes based on transaction type. |
Response summary attributes - For the summary of the tax profit & loss
| Attribute | Data Type | Description |
|---|---|---|
gross_tax_pnl | float | The gross tax profit & loss of the trade |
net_tax_pnl | float | The net tax profit & loss of the trade |
taxable_intrady | float | The taxable intraday profit & loss of the trade |
taxable_future | float | The taxable future profit & loss of the trade |
taxable_option | float | The taxable option profit & loss of the trade |
realized_pnl | float | Realised profit or loss from positions that have been fully closed. |
turnover_equity | float | Total turnover from your equity trades. |
turnover_fno | float | Total turnover from your F&O trades. |
total_charges | float | Total charges levied for all transactions in a year. |
Last updated on