InjectiveLabs / injective-helix-demo

Decentralized Derivatives Trading. Any Market. Anytime. Anywhere.
Apache License 2.0
101 stars 74 forks source link

P&L on open position is not automatically updated with the changes in price #983

Open dyegonery opened 2 years ago

dyegonery commented 2 years ago

Describe the bug When we have an open position on Helix, the "Open Positions" box doesn't have your profit/loss updated with the changes in mark price. We actually need to refresh the page for this to be updated.

To Reproduce Just opens a position, and leave it open. While the mark price might change, your profit/loss shown is not being updated with it.

Screenshots Screenshot from 2022-10-26 11-52-38 Screenshot from 2022-10-26 11-52-50