Navigation

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

    Error while placing orders

    Test
    0
    12
    113
    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
      admin @laxm last edited by

      Hi @laxm

      Please share more details about the issue.

      1 Reply Last reply Reply Quote 0
      • G
        garry07396 last edited by

        Hi @admin, even i am facing this issue since 16 Nov. When first time algo places order there is error, but when i restart & try again, It works fine

        1 Reply Last reply Reply Quote 0
        • L
          laxm last edited by laxm

          Faced the issue again today. Please see below error

          Traceback (most recent call last):
          File "<string>", line 79, in <module>
          File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\smartapi\smartConnect.py", line 290, in placeOrder
          orderResponse= self._postRequest("api.order.place", params)['data']['orderid']
          TypeError: 'NoneType' object is not subscriptable

          A 1 Reply Last reply Reply Quote 0
          • A
            admin @laxm last edited by

            HI @laxm

            We have checked order placement and it's working properly. Request you to please help us the the steps to re-produce the issue.

            1 Reply Last reply Reply Quote 0
            • L
              laxm last edited by

              Hi @admin, as stated earlier it doesn't work sometimes. Faced this issue again at 10:50AM today. Below is the error :

              File "<string>", line 77, in <module>
              File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\smartapi\smartConnect.py", line 290, in placeOrder
              orderResponse= self._postRequest("api.order.place", params)['data']['orderid']
              TypeError: 'NoneType' object is not subscriptable

              Btw I'm using ROBO order.
              After the error if I restart the order goes fine. Please let me know what else is required from my end.

              1 Reply Last reply Reply Quote 0
              • L
                laxm last edited by

                @admin Faced the same issue again today. Please solve this issue as soon as possible.

                1 Reply Last reply Reply Quote 0
                • L
                  laxm last edited by

                  Hi @admin, any update on this?
                  Today received the similar error again around 3:14 pm. This is not for a ROBO order, but an 'INTRADAY' order with variety as 'NORMAL'. Please see the below screenshot of error.

                  0dd2636c-2768-4f53-8d9a-da57cdb375ce-image.png

                  1 Reply Last reply Reply Quote 0
                  • L
                    laxm last edited by

                    @admin @administrators @admin123

                    Can someone reply on this?

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      admin @laxm last edited by

                      HI @laxm

                      We have checked order placement and it's working properly. Request you to please review your code and order params.

                      L 1 Reply Last reply Reply Quote 0
                      • L
                        laxm @admin last edited by

                        Hi @admin

                        I see different responses for different posts on the same issue. On one post it's said as due to wrong variety parameter and on another post it was replied as due to invalid session. Please clarify on this as I'm facing the same error regularly.

                        1 Reply Last reply Reply Quote 0
                        • L
                          laxm last edited by

                          Hello @admin and support team,

                          This is pending from few months and still no response. Is this forum operational?

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