Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Announcing Brokerage Calculator API for SmartAPI users

    General Discussion
    0
    11
    238
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Moderator_1 last edited by Moderator_1

      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

      C S 2 Replies Last reply Reply Quote 0
      • C
        C50781558 @Moderator_1 last edited by

        @Moderator_1

        M 1 Reply Last reply Reply Quote 1
        • S
          Saranesh last edited by

          I'm getting 404 error....
          Is this API endpoint live?

          M 1 Reply Last reply Reply Quote 1
          • M
            Moderator_2 @Saranesh last edited by

            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

            S 3 Replies Last reply Reply Quote 0
            • M
              Moderator_1 @C50781558 last edited by

              Hi @C50781558,

              How may I help you?

              Thank you.
              Regards
              SmartAPI Team

              1 Reply Last reply Reply Quote 0
              • S
                Saranesh @Moderator_2 last edited by

                @Moderator_2
                Yes. The new endpoint is working

                1 Reply Last reply Reply Quote 0
                • S
                  Saranesh @Moderator_2 last edited by

                  @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}

                  1 Reply Last reply Reply Quote 0
                  • S
                    Saranesh @Moderator_2 last edited by

                    @Moderator_1 @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}
                    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?

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      Moderator_2 @Saranesh last edited by

                      Hi @Saranesh

                      We are checking on this. Will update as soon as possible.

                      Thanks & Regards,
                      SmartAPI team

                      1 Reply Last reply Reply Quote 0
                      • S
                        Saranesh @Moderator_1 last edited by

                        @Moderator_1 @Moderator_2
                        Any update?

                        1 Reply Last reply Reply Quote 0
                        • A
                          Alpha0035 last edited by

                          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

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post