Current P/L value : How to get the correct value?

sabyasm
Hi,

What is the correct way to get the current M2M or P&L value at any instance?

I opened a thread earlier : https://kite.trade/forum/discussion/351/wrong-value-for-m2m-unrealised
that kite.margins("equity") doesn't give correct value. The response was that it is an OMS issue and will take some time to fix.

1. Now that you are re-writing the low level OMS call - is there a scope to fix this at you end and not relying on TR?
2. Is there any workaround till this issue is fixed? Depending on the M2M value I would like to execute few action and currently it is not possible.
  • Vivek
    @sabyasm For now you can fetch positions and sum it up to get m2m and pnl.
  • sabyasm
    @vivek Thanks!

    1. Now that you are re-writing the low level OMS call - is there a scope to fix this at you end and not relying on TR?
  • Vivek
    @sabyasm Yes its possible but we are still on initial stage of development so can't comment on it yet.
  • sujith
    Hi @sabyasm,

    It is showing correct value for sometime and then after pnl changes, it is going wrong. We will followup with TR about this issue.
Sign In or Register to comment.