102: EMC Perps: show liquidation risk and account health

This commit is contained in:
2026-10-26 06:05:26 +01:00
parent 2f30712004
commit e71a8daa8d
30 changed files with 1070 additions and 48 deletions
@@ -27,3 +27,10 @@ The overview SHALL preserve size basis, use post-fee USD collateral and price Pn
#### Scenario: Nonpositive collateral
- **WHEN** a position's collateral is zero or negative
- **THEN** its leverage and PnL percentage are unavailable
### Requirement: Report venue risk prices with observation time
The overview SHALL expose the venue reference and liquidation prices in exact USD units with the original response observation time. Missing or nonpositive risk prices SHALL be unavailable, never zero safety or infinite distance. Stable position identity and the separate transaction/alarm read path SHALL remain unchanged.
#### Scenario: Missing or sentinel price
- **WHEN** a valid position has no actionable liquidation price
- **THEN** its other metrics remain present and its liquidation distance is unavailable