Current status of stock position

darsh
darsh edited February 2018 in Python client
Hi,
I want to know status of current position of stock,whether it is bought or not.For that i have used below API
def positions(self):
return self._get("portfolio.positions")

I have bought "NSE:SUBEX" stock, quantity=1 and product=MIS.Then after i execute above mentioned API.It gave me desirable output.But then after selling that same stock i executed the same above mentioned API. Now actually i bought and sold same stock by same quantity.So, my current position is zero stock of SUBEX in kite app which is true. . But when i again ran above mentioned API ,it gave me data related SUBSEX stock. I actually want current status as it shows in kite APP.But Kite API shows me old transaction status.It is supposed to show me zero stock as my position.So that i can use that data in my kite connect app and design my app to execute another order.
This discussion has been closed.