Navigation

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

    Order Placement : 'NoneType' object is not subscriptable

    Python SDK
    0
    2
    28
    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
      AmazeAlgos last edited by

      I tried placing order through a loop to multiple account and all accounts I could login without issue, when I was placing order after 10 mins to those accounts in the same session, for one of the account it gave exception as 'NoneType' object is not subscriptable. I have been using the same code for more than a week and today for the first time it has given exception for 1 client account otherwise same code was able to login and place orders for all accounts. any suggestion on how to avoid it??

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

        @AmazeAlgos I further investigated on this and find that this error is returned from place order function. when the order was placed at the server, it was not returning any response and thrown this exception. but after a second the order got executed in the account and order ID got generated. is there a option to look at single order history to see when the order was placed and when it got executed

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