Navigation

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

    how to close open position

    General Discussion
    0
    3
    59
    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.
    • V
      Ved last edited by

      I open a buy position on 100 now price is 102 So I want to close open position.
      Please tell me how close my active position using api.
      what parameters required for this.

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

        @aksharmty said in how to close open position:

        I open a buy position on 100 now price is 102 So I want to close open position.
        Please tell me how close my active position using api.
        what parameters required for this.

        Hi, to close your open position, you need to use the same function you used to place the order, but this time you would specify a "sell" order instead of a "buy" order, if the original order was a "buy" order

        1 Reply Last reply Reply Quote -1
        • P
          Phanilbb last edited by

          Hi Admin.. It would be great that you provide exit by order ID and exit all APIs. that would be of great help for us

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