Retrieving Position of Particular Instrument

satheesh7134
Hi Everyone

Instead of getting all open positions, I want to check whether a position exist for a particular instrument

Anyone know how to do that?
  • SRIJAN
    Every position has a tradingsymbol field .

    You can fetch all positions and look for a particular tradingsymbol in the response.

    https://kite.trade/docs/connect/v3/portfolio/#positions
  • satheesh7134
    Hi Srijan

    Thanks

    May I know how to see whether the position associated with the instrument is a long position or short position?
  • SRIJAN
    You can know this by checking the quantity.

    If quantity is positive, it's a long position,if negative, it's a short position,and if zero,it means the position has been closed.
Sign In or Register to comment.