102: EMC Perps: show liquidation risk and account health
This commit is contained in:
@@ -26,12 +26,22 @@ amounts fail the read.
|
||||
| uPnL | `pnlBeforeFeesUsd / 10^6`, price PnL before separately reported fees |
|
||||
| uPnL percent | 100 × uPnL / positive Collateral |
|
||||
| Value | Unavailable; API net-value semantics have not passed verification |
|
||||
| Risk reference price | Positive `markPriceUsd / 10^6` from the same response |
|
||||
| Reported liquidation price | Positive `liquidationPriceUsd / 10^6`; missing/nonpositive values are unavailable |
|
||||
|
||||
All amounts are parsed as decimal integers and converted exactly. The API's
|
||||
`pnlBeforeFeesPct` is already percentage points (95.48 means 95.48%), but the
|
||||
overview derives the requested percentage against precise collateral itself.
|
||||
The API's rounded `leverage` is likewise not used for the derived ratio.
|
||||
|
||||
The overview preserves one original response observation time on all positions.
|
||||
It does not treat a position's `updatedTime` as proof of current price freshness.
|
||||
Risk uses the venue's reported prices, with no new liquidation-price formula or
|
||||
Ticker dependency. Missing/sentinel prices retain the position and its independent
|
||||
metrics. Present malformed amounts still fail the read. Isolated signed distance,
|
||||
the owner's neutral-distance policy and expiration are described in
|
||||
[Perps risk presentation](Evelyn.md#risiko-i-perps).
|
||||
|
||||
## Why API Value is not displayed
|
||||
|
||||
On 24 October 2026 the funded configured wallet's six API sizes and collateral
|
||||
|
||||
Reference in New Issue
Block a user