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
You will get buy average as in holdings response.