Navigation

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

    How to close a particular position using some Position id OR reference

    General Discussion
    0
    2
    24
    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.
    • M
      madhavthkr last edited by madhavthkr

      Dear Admin,

      It will be really helpful if the response structure for Get_position includes a Position ID.
      This way we can track different positions of the same instrument using their individual IDs.

      Mnagesh 1 Reply Last reply Reply Quote 0
      • Mnagesh
        Mnagesh @madhavthkr last edited by

        @madhavthkr
        "tradingsymbol" is the key to identify the position

        Position ID is not there to identify the position

        "netqty": will tell it is a open position or not

        if "netqty" is zero means position closed
        otherwise still position is open and not yet closed

        if "netqty" is grater than zero means we are in Long position

        if "netqty" is less than zero means we are in short position

        what else details is required ?

        Now I am full time Algo Trader and successfully developed my own Apps for my personal use.

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