Announcing Brokerage Calculator API for SmartAPI users
-
Dear SmartAPI Users,
We are pleased to announce brokerage calculator API for all our users. Using this API, you can check the brokerage charges for your trades and make informed decisions wrt it.The API endpoint is:
https://apiconnect.angelbroking.com/rest/secure/angelbroking/brokerage/v1/estimateCharges
Headers are same as other requests.
Method: POST
Following is the request for for estimate charges:{ "orders": [ { "product_type": "DELIVERY", "transaction_type": "BUY", "quantity": "10", "price": "800", "exchange": "NSE", "symbol_name": "745AS33", "token": "17117" },{ "product_type": "DELIVERY", "transaction_type": "BUY", "quantity": "10", "price": "800", "exchange": "BSE", "symbol_name": "PIICL151223", "token": "726131" } ] }
Below is the response from the API for a succesful request:
{ "status": true, "message": "SUCCESS", "errorcode": "", "data": { "summary": { "total_charges": 3.0796, "trade_value": 16000, "breakup": [ { "name": "Angel One Brokerage", "amount": 0.0, "msg": "", "breakup": [] }, { "name": "External Charges", "amount": 2.976, "msg": "", "breakup": [ { "name": "Exchange Transaction Charges", "amount": 0.56, "msg": "", "breakup": [] }, { "name": "Stamp Duty", "amount": 2.4, "msg": "", "breakup": [] }, { "name": "SEBI Fees", "amount": 0.016, "msg": "", "breakup": [] } ] }, { "name": "Taxes", "amount": 0.1036, "msg": "", "breakup": [ { "name": "Security Transaction Tax", "amount": 0.0, "msg": "", "breakup": [] }, { "name": "GST", "amount": 0.1036, "msg": "", "breakup": [] } ] } ] }, "charges": [ { "total_charges": 1.5162, "trade_value": 8000, "breakup": [ { "name": "Angel One Brokerage", "amount": 0.0, "msg": "", "breakup": [] }, { "name": "External Charges", "amount": 1.468, "msg": "", "breakup": [ { "name": "Exchange Transaction Charges", "amount": 0.26, "msg": "", "breakup": [] }, { "name": "Stamp Duty", "amount": 1.2, "msg": "", "breakup": [] }, { "name": "SEBI Fees", "amount": 0.008, "msg": "", "breakup": [] } ] }, { "name": "Taxes", "amount": 0.0482, "msg": "", "breakup": [ { "name": "Security Transaction Tax", "amount": 0.0, "msg": "", "breakup": [] }, { "name": "GST", "amount": 0.0482, "msg": "", "breakup": [] } ] } ] }, { "total_charges": 1.5634, "trade_value": 8000, "breakup": [ { "name": "Angel One Brokerage", "amount": 0.0, "msg": "", "breakup": [] }, { "name": "External Charges", "amount": 1.508, "msg": "", "breakup": [ { "name": "Exchange Transaction Charges", "amount": 0.3, "msg": "", "breakup": [] }, { "name": "Stamp Duty", "amount": 1.2, "msg": "", "breakup": [] }, { "name": "SEBI Fees", "amount": 0.008, "msg": "", "breakup": [] } ] }, { "name": "Taxes", "amount": 0.0554, "msg": "", "breakup": [ { "name": "Security Transaction Tax", "amount": 0.0, "msg": "", "breakup": [] }, { "name": "GST", "amount": 0.0554, "msg": "", "breakup": [] } ] } ] } ] } }
We hope that this enhances your trading experience and helps you.
Regards
SmartAPI Team -
Hello Team,
The angelone brokerage calculator does not give the same charges as online, can you check https://www.angelone.in/calculators/brokerage-calculator ?
Thanks
-
@Moderator_1 @Moderator_2
Any update? -
Hi @Saranesh
We are checking on this. Will update as soon as possible.
Thanks & Regards,
SmartAPI team -
Though the new endpoint working, it looks like the price is expected in integer, NOT a float...
If the payload price given in float then the endpoint returning {"message":"Internal Error","errorcode":"AB2001","status":false,"data":null}
For example, the endpoint accepting "price": "600" BUT not accepting "price": "600.00"Also the "total_charges" in the response JSON not matching with "angelone.in/calculators/brokerage-calculator" which means the endpoint calculation not exactly same as online brokerage calculator.
Why you are simply releasing a new function without doing these simple tests?
-
@Moderator_2
Though the new endpoint working, it looks like the price is expected in integer, NOT a float...
If the payload price given in float then the endpoint returning {"message":"Internal Error","errorcode":"AB2001","status":false,"data":null} -
@Moderator_2
Yes. The new endpoint is working -
-
Hi @Saranesh
Thank you for notifying us on this. We have the corrected posted Endpoint and request Parameters .Kindly reverify and let us know if the issue persists.
Regards,
SmartAPI team -
I'm getting 404 error....
Is this API endpoint live? -