Navigation

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

    Estimate charges api error

    Test
    0
    9
    57
    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.
    • P
      pkrawat1 last edited by pkrawat1

      Hi @administrators
      I'm integrating the estimate charges api. I'm getting this error on the api response.
      The params are correct, as per doc.
      Also I noticed the API does not follow a single case format. Somewhere it is camelCase or snake_case.

      Here is the request log in elixir language.

      "orders" => [
            %{
              "exchange" => "NSE",
              "price" => "313.75",
              "product_type" => "DELIVERY",
              "quantity" => "1",
              "symbol_name" => "ANANTRAJ-EQ",
              "token" => "13620",
              "transaction_type" => "BUY"
            }
          ]
      

      json encode

      {\"orders\":[{\"exchange\":\"NSE\",\"price\":\"313.35\",\"product_type\":\"DELIVERY\",\"quantity\":\"1\",\"symbol_name\":\"ANANTRAJ-EQ\",\"token\":\"13620\",\"transaction_type\":\"BUY\"}]}
      

      Tried with the doc example too

      {:ok,
       "{\"orders\":[{\"exchange\":\"NSE\",\"price\":\"800\",\"product_type\":\"DELIVERY\",\"quantity\":\"10\",\"symbol_name\":\"745AS33\",\"token\":\"17117\",\"transaction_type\":\"BUY\"}]}"}
      {:error,
       %{
         "data" => nil,
         "errorcode" => "AB2001",
         "message" => "Internal Error",
         "status" => false
       }}
      
      P M 2 Replies Last reply Reply Quote 0
      • P
        pkrawat1 @pkrawat1 last edited by

        @Moderator_2 any update for this ?

        M 2 Replies Last reply Reply Quote 0
        • M
          Moderator_2 @pkrawat1 last edited by

          Hi @pkrawat1

          Apologies for delayed response.
          We are checking on this. Will update you as soon as possible.

          Thanks & Regards,
          SmartAPI team

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

            Hi @pkrawat1

            Kindly share us client code

            Thanks & Regards,
            SmartAPI team

            P 1 Reply Last reply Reply Quote 0
            • P
              pkrawat1 @Moderator_2 last edited by

              @Moderator_2 P773791

              P 1 Reply Last reply Reply Quote 0
              • P
                pkrawat1 @pkrawat1 last edited by

                @Moderator_2 Any update for the api error.

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

                  hi @pkrawat1

                  We have traced the issue. Will update you once its fixed.

                  Thanks & Regards,
                  SmartAPI team

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

                    Hi @pkrawat1

                    Thank you for notifying us on this issue. We have applied a fix on this. Kindly verify for the same.

                    Regards,
                    SmartAPI team

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      pkrawat1 @Moderator_2 last edited by

                      @Moderator_2 Thanks for the help 😄

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