positions api PNL is updating only after a minute.

ytomar
The API call keeps giving the same value for a minute. It does get updated but after a minute.

Is this expected?
  • rishiswethan
    I'm not seeing this, it's running right now for me. It's instant
  • sujith
    You can check out this thread.
  • ytomar
    These fields

    pnl = (sellValue - buyValue) + (netQuantity * lastPrice * multiplier);

    Can be picked up from positions response?
  • sujith
    You can get everything except for the last price.
    You can get the last price from the Websockets API.
  • ytomar
    Thanks. This helps
This discussion has been closed.