Delay in position api

tukkan
I wanted to square off all my positions once target is hit but there is lot of delay in positions pnl we get from positions api. Is there any alternative for the same?
Tagged:
  • sujith
    You can refer to the FAQs here.
  • tukkan
    Thanks Sujith.
    In this "pnl = (sellValue - buyValue) + (netQuantity * lastPrice * multiplier);"
    last price is from position api or we have to fetch it through ltp api?
  • tukkan
    I mean does lastprice in position api change realtime?
  • sujith
    You will need to use Quote or Websocket API to fetch realtime LTP.
  • tukkan
    Okay, thanks Sujith.
This discussion has been closed.