I am new to API. How kite API differentiates between short-sell vs exit order? Today I wanted to exit my delivered holding, but my exit order ended up as short-sell. OrderId: 241113600590298. The sell order content: LIMIT/CNC/DAY order.
Also, in Kite website, a position is shown as "Sold Holding" if it was a holding exit. What's the equivalent field in kite API response when I fetch positions.
Thanks Sujith. Can you please confirm this understanding about position's quantity: If quantity < 0, it's a CNC holding sold; If quantity = 0, its a intraday position (MIS) settled (squared off); if quantity > 0, it's a open intraday position (MIS), not squared off yet; It's a BUY if buy_quantity > 0, a ShortSell if sell_quantity > 0.
If quantity < 0, it's a CNC holding sold;
If quantity = 0, its a intraday position (MIS) settled (squared off);
if quantity > 0, it's a open intraday position (MIS), not squared off yet; It's a BUY if buy_quantity > 0, a ShortSell if sell_quantity > 0.