Navigation

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

    {'message': 'Internal Error', 'errorcode': 'AB2001', 'status': False, 'data': None}

    Test
    0
    3
    15
    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.
    • A
      abhijitpa1992 last edited by

      Getting Error while placing Buy or Sell order

              orderparams = {
                  "variety": "NORMAL",
                  "transactiontype": "SELL",
                  "ordertype": "MARKET",
                  "producttype": "CARRYFORWARD",
                  "duration": "DAY",
                  "exchangee": "NFO",
                  "tradingsymbol": "BANKNIFTY24APR24FUT",
                  "symboltoken": "52220",
                  "quantity": "15"
              }
      

      [E 240415 11:40:32 smartConnect:352] API request failed: {'message': 'Internal Error', 'errorcode': 'AB2001', 'status': False, 'data': None}

      Please let me know what is wrong.

      M 1 Reply Last reply Reply Quote 1
      • M
        Moderator_1 @abhijitpa1992 last edited by

        Hello @abhijitpa1992,

        You're sending an extra e in the key exchange. It should be exchange as mentioned in the documentation. Please correct the typo and you'd be able to place your orders.
        Please let us know if you have any other issue.

        Thank you.

        Regards
        SmartAPI Team

        A 1 Reply Last reply Reply Quote 0
        • A
          abhijitpa1992 @Moderator_1 last edited by

          @Moderator_1 Thank you. The issue got resolved

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