The holdings() docs describe `quantity` as "Realised Quantity(T+2)" and `used_quantity` as "Quantity sold from the net holding quantity" — read together that suggests `quantity` stays at the settled figure and `used_quantity` absorbs an intraday sale. But I've also seen it said that `quantity` itself drops immediately on a sale.
Could someone confirm which is correct? A worked example would help: 100 settled shares, sell 40 intraday — right after the sale, what do holdings() (`quantity`, `used_quantity`, `t1_quantity`) and positions()["net"] (sign, quantity, product) show for that symbol?
`Quantity` represents the settled/realised holding quantity (T+2), while `used_quantity` represents the quantity sold from the net holding quantity during the day. The `used_quantity` is reset on the following day.
The `quantity` field is reduced corresponding to the executed CNC sell quantity.
For example, if you have 100 settled shares and sell 40 shares through a CNC order, the expected representation would be as below:
Holdings() Before the sale: quantity: 100 used_quantity: 0
After the sale: quantity: 60 used_quantity: 40
The corresponding CNC sale is also reflected in `positions()["net"]` as a sold-holding position. A CNC position with a negative net quantity represents shares sold from holdings.
For reference, you can also refer to the Kite Connect Portfolio documentation for the definitions of `quantity`, `used_quantity`, `t1_quantity`, and the positions fields.
The `quantity` field is reduced corresponding to the executed CNC sell quantity.
For example, if you have 100 settled shares and sell 40 shares through a CNC order, the expected representation would be as below:
Holdings()
Before the sale:
quantity: 100
used_quantity: 0
After the sale:
quantity: 60
used_quantity: 40
The corresponding CNC sale is also reflected in `positions()["net"]` as a sold-holding position. A CNC position with a negative net quantity represents shares sold from holdings.
Position()
quantity: -40
product: CNC
buy_quantity: 0
sell_quantity: 40
For reference, you can also refer to the Kite Connect Portfolio documentation for the definitions of `quantity`, `used_quantity`, `t1_quantity`, and the positions fields.