Navigation

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

    close specific position

    General Discussion
    2
    6
    36
    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.
    • R
      rishi6310 last edited by

      @admin how to close specific position through api
      for eg: there are 5 position open and i want close a specific position with orderid how can i able to execute it through api in python

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

        @rishi6310 you should call get position () and execute reverse order for all positions.

        R 2 Replies Last reply Reply Quote 0
        • R
          rishi6310 @admin last edited by

          @admin i want only specific postiion to be close

          1 Reply Last reply Reply Quote 0
          • R
            rishi6310 @admin last edited by

            @admin and rest position should be open

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

              @rishi6310 you need to perform filter operations on the response which you get from get position api and then execute sell order according to your requirement.

              R 1 Reply Last reply Reply Quote 0
              • R
                rishi6310 @admin last edited by

                @admin can you provide me piece of code how to filter out and exit position

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