Skip to Content
Symmio Trading-SDK — the SDK surface for builders on HyperEVM
CoreMuon OraclegetMuonPrice

getMuonPrice

Fetch a fresh Muon price attestation for a set of quote ids and normalize it to typed fields. The oracle URLs and the SYMMIO diamond address are resolved from config; gateways are tried in order until one succeeds.

import { getMuonPrice } from "@symmio/trading-core"; const p = await getMuonPrice(config, { quoteIds: [10n, 11n] }); console.log(p.prices, p.quoteIds);

Parameters

quoteIdsreadonly bigint[]required

The quote ids to price. The partyB liquidation flow validates these prices.

chainIdnumberoptional

Optional chain override.

Returns

GetMuonPriceReturnType
quoteIdsbigint[]

The attested quote ids (echoed from the request).

pricesbigint[]optional

Validated prices per quote id (18-decimal).

markPricesbigint[]optional

Mark prices per quote id (18-decimal).

maxLeveragesbigint[]optional

Max leverage per quote id.

symbolsstring[]optional

Symbol names per quote id.

Plus the MuonAttestationBase signature envelope fields.

Query options

import { getMuonPriceQueryOptions } from "@symmio/trading-core"; import { useQuery } from "@tanstack/react-query"; useQuery(getMuonPriceQueryOptions(config, { quoteIds: [10n, 11n] }));

GetMuonPriceOptions requires quoteIds; the factory does not accept missing inputs or validate them inside queryFn. The getMuonPriceQueryKey builder still accepts partial inputs for cache matching and invalidation.

Last updated on