Brokerage and Charges Page
This API returns approximate brokerage and statutory charges applicable on an order before it is sent to the exchange, as per SEBI circular. These charges are useful for pre-trade transparency and must be displayed to the user.
Note
The entire request string must be Base64-encoded before sending via the enct parameter. Do not include whitespace from line breaks.
🔗HTTP Request
GET http://DOMAIN/newnetnet/BrokerageDetails.aspx?type=1&enct=<Base64_Encoded_String>
🔍Query Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| type | integer | Yes | Always 1 for standard requests | 1 |
| enct | string | Yes | Base64-encoded string of all required order parameters as a query string | UHJvZHVjdD1XQVZFMiZ... |
🔐Fields in Base64-encoded Query String
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
| Product | string | Yes | Product source Identifier | WAVE2 |
| Theme | string | No | UI theme used | L |
| UserId | string | Yes | User ID | APITEST |
| GroupId | string | Yes | Group/Branch Identifier | HO |
| MktSegmentId | integer | Yes | Market Segment ID | 2 |
| Series | string | No | Series of the scrip (usually equity symbol series) | XX |
| ProductType | string | Yes | Product type | CARRYFORWARD, DELIVERY, INTRADAY |
| TransactionType | integer | Yes | 1 = Buy, 2 = Sell | 1 |
| Quantity | integer | Yes | Quantity of the order | 250 |
| Price | float | Float | Order price (₹) | 26.50 |
| Brokerage | float | Yes | Brokerage amount (from GetOrderMarginInfo API) | 20.50 |
| LegIndicator | integer | Yes | Order type: 1 = Normal, 4 = Spread, 5 = 2-Leg, 6 = 3-Leg | 1 |
| SessionId | string | Yes | User's trading session ID (from login/session API) | 0x011017F506627E18C2FC2952D6937C |
| Instrument | string | Yes | Instrument type | FUTSTK, EQ, OPTIDX |
| PriceLocator | integer | Yes | Use 1 normally. For commodities, calculate using (PriceNum / PriceDen) * (nAVMBuyMargin / nAVMSellMargin) | 1 |
🟢Response - 200 Ok
⚠️Notes:
- This API helps you see estimated charges before placing an order.
- It's like a "preview bill" showing how much you'll pay including taxes, fees, and brokerage.
- Make sure the values are Base64 encoded — otherwise, the request won't work.
- Always use Brokerage value from GetOrderMarginInfo API to match real-time cost estimates.
- Integrate with ScripInfo API for commodity segments when needed.
get
/BrokerageDetails.aspx