Navigation

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

    return order details in placeOrder function instead of just the orderID

    Python SDK
    0
    2
    35
    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.
    • N
      namanviz last edited by

      @admin @administrators there is a function called 'placeOrder' in the 'SmartConnect' class in the SmartConnect.py file, and the function returns the order ID if the order is placed successfully.
      So instead of returning just the order ID can you please change it to return the completely executed order with the details such as orderID, trade executed price, quantity, time, etc.
      If this is done then we can possibly avoid the calls to getOrderBook.
      I understand that for a single order with large quantities of shares being traded on 'market-type' orders multiple trades will sum into one order but the above mentioned can be implemented.

      Thank you

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

        Hi @namanviz , We have noted your suggestion. Thank you.

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