104: EMC Perps: show estimated Jupiter Value and mark affected totals with ≈
This commit is contained in:
@@ -25,7 +25,7 @@ amounts fail the read.
|
||||
| Leverage | Exposure / positive Collateral; not equity-based leverage |
|
||||
| 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 |
|
||||
| Value | `valueUsd / 10^6`, Jupiter's reported estimate, unchanged and displayed with `≈` |
|
||||
| Risk reference price | Positive `markPriceUsd / 10^6` from the same response |
|
||||
| Reported liquidation price | Positive `liquidationPriceUsd / 10^6`; missing/nonpositive values are unavailable |
|
||||
|
||||
@@ -42,7 +42,26 @@ 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
|
||||
## Reported Value and its uncertainty
|
||||
|
||||
The overview preserves optional `valueUsd` exactly as supplied, including zero
|
||||
and signed values. EMC displays it with `≈` and two USD decimals (for example,
|
||||
`≈$123.23`). Its tooltip explains: “Estimated position value reported by Jupiter.
|
||||
Actual proceeds on closing may differ.” Missing/null values remain unavailable;
|
||||
present malformed amounts fail the complete observation. Successful observations
|
||||
replace earlier values, including replacing an estimate with unavailable Value.
|
||||
Failed reads retain the original observation, success time and failure indication.
|
||||
|
||||
Available Jupiter, wallet and Perpetual Contracts Value totals inherit the estimate
|
||||
qualification independently of expansion state. Mixed Phoenix/Jupiter totals
|
||||
identify both estimate sources; Phoenix's existing account-aware closing estimates
|
||||
and single counting of shared Cross capital are preserved. A missing required Value
|
||||
still makes the affected total `—`, without a numeric approximation marker. A
|
||||
successfully read empty scope can total zero.
|
||||
|
||||
This reports a venue estimate, not verified closing proceeds. It does not add
|
||||
opening fees back, correct the API number, introduce closing quotes or combine
|
||||
additional on-chain observations with the response.
|
||||
|
||||
On 24 October 2026 the funded configured wallet's six API sizes and collateral
|
||||
amounts matched read-only on-chain position data. For its SOL Short, the response
|
||||
@@ -56,14 +75,15 @@ borrowFeesUsd = 7 valueUsd = 35551
|
||||
|
||||
`35551 = 18559 + 17721 - 361 - 361 - 7`. The on-chain collateral was also
|
||||
18559; the official [position account documentation](https://developers.jup.ag/docs/perps/position-account)
|
||||
defines collateral as after fees. Blindly displaying this API Value would
|
||||
subtract the settled opening fee again. Adding it back alone does not establish
|
||||
defines collateral as after fees. This observation raises uncertainty about
|
||||
subtracting a settled opening fee again; it does not prove that every API estimate
|
||||
is wrong. Adding that fee back alone would not establish
|
||||
the full contract: collateral-currency valuation and the `lockedAmount` profit
|
||||
cap must also be verified. The response does not expose that cap. The overview
|
||||
therefore shows an em dash with an explanation, and higher Value totals containing
|
||||
such a position also remain unavailable. It does not merge unmatched on-chain
|
||||
observations into the API snapshot or build unsigned closing transactions.
|
||||
cap remain unverified. The response does not expose that cap. The possible difference
|
||||
from actual closing proceeds is not known to be limited to small fees. Issue #100
|
||||
therefore withheld Value; [issue #104](https://git.r35157.com/r35157/com_r35157_nenjim-hubd-impl_ref/issues/104)
|
||||
replaces that presentation with the explicitly qualified venue estimate.
|
||||
|
||||
This is a known first-version limitation, not verified closing-value parity with
|
||||
Jupiter. Counts, amounts and prices above are observations, not fixed expectations.
|
||||
There is no verified closing-value parity with Jupiter. Counts, amounts and prices
|
||||
above are historical observations, not fixed expectations.
|
||||
See the change's `verification.md` for observation times and current checks.
|
||||
|
||||
Reference in New Issue
Block a user