Navigation

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

    estimateCharges API giving Internal Error AB2001

    Test
    0
    6
    38
    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
      mohammadfaiizan last edited by

      Hi,

      I am trying to fetch estimates Charges API for a trade in NFO and getting Error.

      orderparams = {
      'orders': [
      {
      'product_type': 'INTRADAY',
      'transaction_type': 'SELL',
      'quantity': '30',
      'price': '105',
      'exchange': 'NFO',
      'symbol_name': _INDEX,
      'token': _INDEX_TKN
      }
      ]
      }
      orderCharges = self.AngleOneClient.estimateCharges(params=orderparams)

      Request: {'orders': [{'product_type': 'INTRADAY', 'transaction_type': 'SELL', 'quantity': '30', 'price': '105', 'exchange': 'NFO', 'symbol_name': 'BANKNIFTY31JUL2452300CE', 'token': '50631'}]}, Response: {'message': 'Internal Error', 'errorcode': 'AB2001', 'status': False, 'data': None}

      Does anyone facing this issue. If This API is working for anyone, Please share request format.

      M 1 Reply Last reply Reply Quote 0
      • M
        Moderator_3 @mohammadfaiizan last edited by

        Hi @mohammadfaiizan Verify symbol token that you have passed is request is right.

        Sample Request Format For Reference:

        "orders": [
        {
        "segment_id": "CM",
        "product_type": "INTRADAY",
        "transaction_type": "BUY",
        "quantity": 4,
        "price": 14,
        "exchange": "NSE",
        "isin": "INE062A01020",
        "token": "3045"
        }

        Regards,
        SmartAPI Team.
        ]

        C M 2 Replies Last reply Reply Quote 0
        • C
          callw3 @Moderator_3 last edited by

          @Moderator_3 W3 Electric is a premier Expert Electrical Solutions provider dedicated to delivering expert and reliable solutions for all your electrical needs. Serving a wide range of areas, W3 Electric combines top-notch expertise with exceptional customer service to ensure your electrical systems are safe, efficient, and up-to-date. Discover more about our comprehensive services and service areas at callw3.

          1 Reply Last reply Reply Quote 0
          • M
            mohammadfaiizan last edited by

            Hello Team,

            Thank you for sharing updated API format and sample API is working as well at my end.

            But when I am trying the same for option, It is getting failed.

            API Code:

            "orders": [
            {
            "segment_id":"OPTIDX",
            "product_type":"CARRYFORWARD",
            "transaction_type":"BUY",
            "quantity":50,
            "price":200,
            "exchange":"NFO",
            "symbol_name":"NIFTY19SEP2425200CE",
            "token":"67932"
            }
            ]

            Response:

            Request: {'orders': [{'segment_id': 'OPTIDX', 'product_type': 'CARRYFORWARD', 'transaction_type': 'BUY', 'quantity': 50, 'price': 200, 'exchange': 'NFO', 'isin': 'NIFTY19SEP2425200CE', 'token': '67932'}]}, Response: {'message': 'Internal Error', 'errorcode': 'AB2001', 'status': False, 'data': None}

            Here is symbol info on sheet.

            token symbol name expiry strike lotsize instrumenttype exch_seg tick_size
            67932 NIFTY19SEP2425200CE NIFTY 19SEP2024 2520000 25 OPTIDX NFO 5

            Can you please check at your end and confirm on Format used for option.

            1 Reply Last reply Reply Quote 0
            • M
              mohammadfaiizan @Moderator_3 last edited by

              @Moderator_3 Hi, Can you check above comment.

              M 1 Reply Last reply Reply Quote 0
              • M
                Moderator_3 @mohammadfaiizan last edited by

                @mohammadfaiizan
                Kindly verify the data type for request parameters

                https://smartapi.angelbroking.com/docs/BrokerageCalculator

                Regards,
                SmartAPI Team

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