Skip to main content

Brokerage Details

API for calculating brokerage fees associated with stock. It accepts input parameters like the instrument, quantity, and other necessary details, and provides a comprehensive breakdown of the total charges.

Header Parameters

NameRequiredTypeDescription
AuthorizationtruestringRequires the format Bearer access_token where access_token is obtained from the Token API.
AccepttruestringDefines the content format the client expects, which should be set to application/json.

Query Parameters

NameRequiredTypeDescription
instrument_tokentruestringKey of the instrument. For the regex pattern applicable to this field, see the Field Pattern Appendix.
quantitytrueinteger (int32)Quantity with which the order is to be placed
producttruestringProduct with which the order is to be placed
transaction_typetruestringIndicates whether its a BUY or SELL order
pricetruenumber (float)Price with which the order is to be placed
Responses

Response Body

{
"status": "success",
"data": {
"charges": {
"total": 208.27,
"brokerage": 0.0,
"taxes": {
"gst": 1.02,
"stt": 175.0,
"stamp_duty": 26.23
},
"other_charges": {
"transaction": 5.68,
"clearing": 0.0,
"ipft": 0.17,
"sebi_turnover": 0.17
},
"dp_plan": {
"name": "DP3A",
"min_expense": 18.5
}
"otherTaxes": {
"transaction": 5.68,
"clearing": 0.0,
"ipft": 0.17,
"sebi_turnover": 0.17
},
"dpPlan": {
"name": "DP3A",
"min_expense": 18.5
},
}
}
}
NameTypeDescription
statusstringA string indicating the outcome of the request. Typically success for successful operations.
dataobjectResponse data for brokerage
data.chargesobjectResponse data for charges details
data.charges.totalfloatTotal charges for the order
data.charges.brokeragefloatBrokerage charges for the order
data.charges.taxesobjectTaxes levied on order
data.charges.taxes.gstfloatGST charges
data.charges.taxes.sttfloatSTT charges
data.charges.taxes.stamp_dutyfloatStamp duty charges
data.charges.other_chargesobjectOther applicable charges
data.charges.other_charges.transactionfloatTransaction charges
data.charges.other_charges.clearingfloatClearing charges
data.charges.other_charges.ipftfloatIPF charges
data.charges.other_charges.sebi_turnoverfloatSEBI turnover charges
data.charges.dp_planobjectdpPlan detail
data.charges.dp_plan.namestringName of the user's Depository Participant plan, indicating the specific DP service they are enrolled in.
data.charges.dp_plan.min_expensefloatDaily minimum charges per scrip on sales, not included in brokerage calculations, indicating extra costs under the user's DP plan.
Notice of Deprecation

The camelCase fields (otherTaxes, and dpPlan) are deprecated and will be removed in future versions. Use the snake_case versions for consistency.


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...