If you’re trading at Zerodha, login to Q, your backoffice, go to the Holdings page.
You’ll find a link called Add/edit Discrepant quantity. You’ve to update the purchase date, quantity & rate and click on sync to add the average cost.
Why cant this be automated? Why does user have to enter this manually?