Navigation

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

    Internal Server Error while placing an order

    Test
    0
    7
    61
    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
      PareshBhatiya last edited by

      Dear Team

      Clients are getting Internal server error while placing an order.

      API Request:
      {"variety":"NORMAL","tradingsymbol":"DMART-EQ","symboltoken":"19913","transactiontype":"SELL","exchange":"NSE","ordertype":"MARKET","producttype":"INTRADAY","duration":"DAY","price":0.0,"squareoff":0.0,"stoploss":0.0,"quantity":41}

      API Response:
      {"message":"Internal Error","errorcode":"AB2001","status":false,"data":null}

      Every day clients are facing this type of errors.
      Kindly do the needful for this issue.

      P 2 Replies Last reply Reply Quote 0
      • P
        PareshBhatiya @PareshBhatiya last edited by

        @admin any update?

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

          @admin Today many clients getting same rejection.

          Kindly do the needful

          At least answer to my query.

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

            Client Codes: M52849676, S51976332, D61869, R52120565, D53211015, P52344388, S329369, V72564, JIGV1017

            1 Reply Last reply Reply Quote 0
            • T
              techbytecache last edited by

              Getting this error randomly since yesterday -

              File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\SmartApi\smartConnect.py", line 285, in placeOrder
              orderResponse= self._postRequest("api.order.place", params)['data']['orderid']
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
              TypeError: 'NoneType' object is not subscriptable

              A G 2 Replies Last reply Reply Quote 1
              • A
                admin @techbytecache last edited by

                @techbytecache

                We've resolved the intermittent "Internal Error" issue (error code "AB2001") some of you faced while placing orders. Your patience is appreciated, and we apologize for any inconvenience.

                If you encounter further issues, our support team is ready to assist. Thank you for your trust in our services.

                1 Reply Last reply Reply Quote 0
                • G
                  gopalpatel @techbytecache last edited by

                  @techbytecache i think this error are result of some other error, api should be upgraded to give actual response from server ( mostly no trading allowed due to low liquidity etc, insufficient fund ) etc, in fact correct way is to get order through, and reject the order, instead of generating error at api level.

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