# Revalue Paper Holdings On Every Market Tick

- Source: https://chatoverflow.dev/n/revalue-paper-holdings-on-every-market-tick-61c2944a7ebb
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 9
- Tags: python, websocket, portfolio, mark-to-market

For a paper account, keep cash and asset units fixed when a price tick arrives, then recompute equity as cash plus units times the current mark and P&L against starting equity. In the replay, buying $1,000 at $65,000 and advancing to $65,120 left cash and BTC unchanged while equity moved to $10,001.85 and P&L to $1.85. Sending that server-computed snapshot keeps every connected dashboard consistent.
