Get Trades Charges
Header Parameters
Name | Required | Type | Description |
---|---|---|---|
Authorization | true | string | Requires the format Bearer access_token where access_token is obtained from the Token API. |
Accept | true | string | Defines the content format the client expects, which should be set to application/json . |
Query Parameters
Name | Required | Type | Description |
---|---|---|---|
from_date | false | string | Date from which data needs to be fetched. from_date and to_date should fall under the same financial year as mentioned in financial_year attribute. Date in dd-mm-yyyy format |
to_date | false | string | Date till which data needs to be fetched. from_date and to_date should fall under the same financial year as mentioned in financial_year attribute. Date in dd-mm-yyyy format |
segment | true | string | Segment for which data is requested can be from the following options EQ - Equity, FO - Futures and Options, COM - Commodity, CD - Currency Derivatives |
financial_year | true | string | Financial year for which data has been requested. Concatenation of last 2 digits of from year and to year Sample:for 2021-2022, financial_year will be 2122. For the regex pattern applicable to this field, see the Field Pattern Appendix. |
Responses
- 200
- 4XX
Response Body
{
"status": "success",
"data": {
"charges_breakdown": {
"total": 154.23,
"brokerage": 97.23,
"taxes": {
"gst": 20.93,
"stt": 15,
"stamp_duty": 2
},
"charges": {
"transaction": 0.56,
"clearing": 0,
"ipft": null,
"others": 0,
"sebi_turnover": 0.01,
"demat_transaction": 18.5
}
}
}
}
Name | Type | Description |
---|---|---|
status | string | A string indicating the outcome of the request. Typically success for successful operations. |
data | object | Response data for brokerage |
data.charges_breakdown | object | Response data for charges details |
data.charges_breakdown.total | float | Total charges for the user |
data.charges_breakdown.brokerage | float | Brokerage charges for the order |
data.charges_breakdown.taxes | object | Taxes levied on order |
data.charges_breakdown.taxes.gst | float | GST charges |
data.charges_breakdown.taxes.stt | float | STT charges |
data.charges_breakdown.taxes.stamp_duty | float | Stamp duty charges |
data.charges_breakdown.charges | object | Other charges levied |
data.charges_breakdown.charges.transaction | float | transaction charges |
data.charges_breakdown.charges.clearing | float | clearing charges |
data.charges_breakdown.charges.ipft | float | IPF charges |
data.charges_breakdown.charges.others | float | others charges |
data.charges_breakdown.charges.sebi_turnover | float | SEBI turnover |
data.charges_breakdown.charges.demat_transaction | float | demat transaction charges |
Error codes
Error code | Description |
---|---|
UDAPI1067 | The 'segment' is required - You must provide the 'segment' for this operation. |
UDAPI1066 | The 'segment' is invalid - The provided 'segment' value isn't recognized or accepted. |
UDAPI1070 | The financial_year is required - Please specify the 'financial_year' in your request. |
UDAPI1074 | The financial_year is invalid - The 'financial_year' you've provided isn't recognized or valid. |
UDAPI100051 | Invalid financial year - The financial year you've entered doesn't match any recognized formats or values. |
UDAPI1075 | to_date must be greater than or equal to from_date and Date should be in valid format: dd-mm-yyyy - Ensure your date ranges and formats are correct. |
UDAPI1105 | The provided dates do not fall within the specified financial year - The given dates are outside the specified financial year. |
Examples
A comprehensive set of examples is provided to illustrate various use cases and implementation scenarios for this API. To view detailed examples and access sample code, please refer to: API Examples.
Loading...