React SDK · Muon

Muon Oracle API

Fetch the SYMMIO Muon attestations — uPnL, price, and settlement signatures — that the protocol's writes require. Each service queries the connected chain's oracle gateways; chain and SYMMIO address are resolved from config.

uPnl_A
Muon
A partyA's unrealized-PnL attestation (the signature removeMargin / deallocate requires). partyA is a virtual account (lowcap).
Enter a partyA and fetch its uPnL attestation.
uPnl_A → SingleUpnlSig
Muon
The uPnl_A attestation assembled into the contract-ready SingleUpnlSig that removeMargin / deallocate requires. partyA is the virtual account.

The Muon partyA the uPnL attestation is for. The signature is short-lived — fetch it immediately before a removeMargin.

Enter a virtual account and fetch its contract-ready uPnL signature.
partyA_overview
Muon
PartyA liquidation overview — the uPnL + liquidation data behind liquidatePartyA / setSymbolsPrice (produces a LiquidationSig).
Enter a partyA and fetch its liquidation overview attestation.
uPnl_A_withSymbolPrice
Muon
PartyA uPnL plus a single symbol's price — feeds the sendQuoteWithAffiliate flow.
Enter a partyA and a symbolId, then fetch the uPnL + price attestation.

uPnl_B
Muon
A partyB's uPnL against a partyA — used in lockQuote solvency validation.
Enter a partyB and partyA and fetch the partyB's uPnL attestation.
uPnl
Muon
Combined partyA + partyB uPnL in one attestation, with per-party breakdowns.
Enter a partyB and partyA and fetch their combined uPnL attestation.
uPnlWithSymbolPrice
Muon
Both parties' uPnL plus a symbol price — feeds solver openPosition calls.
Enter partyB, partyA, and a symbolId, then fetch the attestation.

price
Muon
Validated prices for a set of quote ids (partyB liquidation flow).
Enter one or more quote ids and fetch their validated prices.
settle_upnl
Muon
uPnL settlement data for a partyA's quotes — enables settleUpnl.

Comma-separated quote ids (e.g. 10, 11, 12).

Enter a partyA and quote ids, then fetch its settlement attestation.
priceRange
Muon
TWAP-style price range over a window — for forceClosePosition / settleAndForceClosePosition validation.
Enter a window, the two parties, and a symbol id, then fetch the price range.