Unique ID for Open Positions

razcads
Hi
Do you have an unique id to identify an open F&O position?
I intend to call a particular open position and process further on it. I know orders have a unique id (order no) but what about open positions in portfolio? What about open positions? Which api can give me this attribute?
Thanks
Ravi
  • sujith
    Hi @razcads,
    For a given contract with one type of product, there will only one entry in the positions. There is not id for positions.
    As an alternative, you may try to find a position with instrument_token and check for the product type.
  • razcads
    ok thanks. I wanted to be able to get the buy / sell prices for the same script taken at different rates. I guess the instrument token and average price will have to be do for now. You can close the query! Thanks.
This discussion has been closed.