Need clarification in holdings api

sdharwada
Kindly refer the below mentioned steps to understand my question:
1. I have an existing holding for the trading symbol 'ALKEM' with average_price field value as 3412.
2. I sold entire quantity of this holding at '3344'.
3. Now holdings api is not returning ALKEM symbol. This is fine and expected behaviour
4. I bought ALKEM at price '3389'
5. Now holdings api is returning ALKEM symbol with average_price as 3412 where as I am expecting the average_price now to be 3389
Above orders are long term orders, and not intra day trading orders.
If above question is nothing to do with the way API behaves, and something to do the way selling and buying on same day for long term orders, kindly forward me to the right forum.
Thanks.

Sign In or Register to comment.