Navigation

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

    While fetching data for margin calculator, im getting this internal error AB2001

    General Discussion
    0
    2
    16
    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.
    • J
      JayeshMestri last edited by

      [E 240608 15:34:58 smartConnect:243] Error occurred while making a POST request to https://apiconnect.angelbroking.com/rest/secure/angelbroking/brokerage/v1/estimateCharges. Error: Internal Error. URL: https://apiconnect.angelbroking.com/rest/secure/angelbroking/brokerage/v1/estimateCharges, Headers: {'Content-type': 'application/json', 'X-ClientLocalIP': '127.0.0.1', 'X-ClientPublicIP': '106.193.147.98', 'X-MACAddress': '74:4c:a1:77:99:6e', 'Accept': 'application/json', 'X-PrivateKey': 'rXGk4YiU', 'X-UserType': 'USER', 'X-SourceID': 'WEB'}, Request: {'orders': [{'product_type': 'INTRADAY', 'transaction_type': 'SELL', 'quantity': '15', 'price': '301', 'exchange': 'NFO', 'symbol_name': 'BANKNIFTY12JUN2450300CE', 'token': '36917'}, {'product_type': 'INTRADAY', 'transaction_type': 'BUY', 'quantity': '15', 'price': '675', 'exchange': 'NFO', 'symbol_name': 'BANKNIFTY12JUN2449500CE', 'token': '36795'}, {'product_type': None, 'transaction_type': 'BUY', 'quantity': '15', 'price': None, 'exchange': 'NFO', 'symbol_name': 'BANKNIFTY12JUN24PE', 'token': None}, {'product_type': None, 'transaction_type': 'SELL', 'quantity': '30', 'price': None, 'exchange': 'NFO', 'symbol_name': 'BANKNIFTY12JUN24PE', 'token': None}]}, Response: {'message': 'Internal Error', 'errorcode': 'AB2001', 'status': False, 'data': None}
      [I 240608 15:34:58 margin2:98] Estimated Charges: {'message': 'Internal Error', 'errorcode': 'AB2001', 'status': False, 'data': None}bolded text

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

        Hello @JayeshMestri

        You are missing the Autherziation key in the header,
        Kindly cross check your header n request body with the attached link then please try the same
        https://smartapi.angelbroking.com/docs/Orders

        Regards,
        SmartAPI Team

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