How to get active positions via API (excluding "sold holdings").

I want to get my active positions via python Kite API.

If I use kite.get_positions()["net"] , I get all my positions including sold holdings. But I only want those positions, which are active (like shorting a stock, buying a stock using MIS etc). How can I do that?

I am trying to exit all my intraday positions using kite API before 3:20
  • sujith
    The position which has product as CNC and the net quantity is less than 0 is the position that is created by selling holdings.
Sign In or Register to comment.