Exit order ended up as short-sell order?

pgp
Hi,

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.

Thanks,
Prakash
  • sujith
    Did you send product type as MIS order or CNC?
  • pgp
    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.
  • sujith
    If product is CNC and quantity is less than 0 then it is tagged as sold holding.
  • pgp
    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.
  • sujith
    If product type of an order is MIS then only it is an intraday position. And yes, long is quantity > 0 and short is quantity < 0
Sign In or Register to comment.