In Python, when we call kite.holdings(), the API returns a list of holdings.
Previously, I used to calculate the total quantity by summing three fields: realised_quantity + t1_quantity + collateral_quantity
However, over the last few days, I've noticed that realised_quantity is consistently returning 0, even when the actual realised quantity is non-zero. Instead, the value that was earlier returned in realised_quantity is now appearing under the quantity field.
For example:
The screenshot below from the Kite holdings dashboard shows that I am holding 90 realised quantity of SANDUMA:
However, the API response for the same holding shows:
Please note, quantity signifies how much you hold in the DEMAT account. Only the T+2 quantity will be reflected in the quantity field. realised_quantity it is a legacy quantity field, don't use this. used_quantity denotes the holdings units sold today. It will get reset to 0 the next day.
quantitysignifies how much you hold in the DEMAT account. Only the T+2 quantity will be reflected in the quantity field.realised_quantityit is a legacy quantity field, don't use this.used_quantitydenotes the holdings units sold today. It will get reset to 0 the next day.Please check the holding API documentation and similar discussion here.