how to find the average buy price of stocks in holdings

algotrader29
in python call

Kite.holdings()

we get all the stocks we are holding in our account. In web view we can see the average buying price and current market price and it shows the current P/L.

But I am unable to find the average buying price of our stocks in the Kite.holdings() call.
Is there any other function that we can use?

I need to check the average buy price of the stocks in holdings, compare with current market price and decide if we want to sell. say if there is 2% profit we will create a sell order through python

thanks
This discussion has been closed.