Is it possible to exit position just using kite.postions() ?

Pankaj485001
Kite.Positions() return information about position but does not contain order_id , in order to exit from an active position I have to go through kite.orders() , and fetch order_id of that position?
Is there any simpler way to do this?
  • rakeshr
    I have to go through kite.orders() , and fetch order_id of that position?
    You don't have to fetch a complete order book for this. You need to place an opposite BUY or SELL order depending on whether the position is long or short.Go through this documentation.
  • Pankaj485001
    Thanks Rakesh for quick response , I was in impression If I exit order rather than sell , I have no need to mention quantity , at it calculate automatically , now I understood that quantity I can take from kite.positions() itself , Thanks again.
This discussion has been closed.