Holdings and positions after a same-day CNC sale when t1_quantity is also non-zero

prashantgupta129
Following up on the thread about `quantity` vs `used_quantity` (thanks for the worked example). One case that example does not cover: a symbol whose holdings() row has both settled quantity and T+1 quantity.

Example: holdings() shows `quantity: 60`, `t1_quantity: 40`, `used_quantity: 0` (the 40 were bought the previous trading day and are not yet settled). I then sell 50 shares through a CNC order the same day.

Right after the sale, what do holdings() (`quantity`, `used_quantity`, `t1_quantity`) and positions()["net"] (`quantity`, `sell_quantity`, `product`) show for that symbol? Does the sale consume settled quantity or T+1 quantity first, and does it lower `t1_quantity`, raise `used_quantity`, or both?
Sign In or Register to comment.