Navigation

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

    How to know open positions in python api

    Python SDK
    2
    10
    181
    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.
    • K
      Khushal01 last edited by

      Hello there, i having been struggling to find a way to know if my completed order is open or squared off in python api.

      Can anyone guide to find a way or a function to know that. Will be of huge help thanks in advance.

      A O 2 Replies Last reply Reply Quote 0
      • A
        admin @Khushal01 last edited by

        Hi @Khushal01 Kindly make use of get positions And orderbook api.

        J 1 Reply Last reply Reply Quote 0
        • J
          Jajsandeep last edited by

          Any update on this?
          When I use Orderbook() I can only see Pending positions.
          How do I track open ones.

          O 1 Reply Last reply Reply Quote 0
          • J
            Jajsandeep @admin last edited by

            @admin With orderbook() I only see pending positions.
            Kindly help me with open positions.

            A O 2 Replies Last reply Reply Quote 0
            • A
              admin @Jajsandeep last edited by

              @Jajsandeep
              you need to use get positions api().

              J 1 Reply Last reply Reply Quote 0
              • J
                Jajsandeep @admin last edited by

                @admin position() gives me list of open and closed positions but I do not get order id.
                I want to pick up order id of open positions and use them for the next day.

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

                  @Jajsandeep response returned from order book are valid for same day only.

                  1 Reply Last reply Reply Quote 0
                  • O
                    oviass @Khushal01 last edited by

                    @Khushal01

                    response = obj.position()
                    pd.DataFrame(response['data'])

                    1 Reply Last reply Reply Quote 0
                    • O
                      oviass @Jajsandeep last edited by

                      @Jajsandeep

                      response = obj.position()
                      pd.DataFrame(response['data'])

                      1 Reply Last reply Reply Quote 0
                      • O
                        oviass @Jajsandeep last edited by

                        @Jajsandeep

                        response = obj.position()
                        pd.DataFrame(response['data'])

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