@somnia-chain/markets-sdk / index / getOpeningPrices
Function: getOpeningPrices()
getOpeningPrices(
marketIds,indexerUrl):Promise<Record<string,string|null>>
Defined in: query.ts:2170
Batch-fetch the OPENING price (the reference-question oracle answer) for many
binary markets in ONE pair of round-trips — for list views that want to show
each up/down market's opening price without an N+1 fan-out. Returns a map of
lowercased marketId → raw numericValue (or null when the reference has no
answer yet / the market has no reference question). Format with the market's
oracle price scale (see the explorer's fmtOraclePrice).
Parameters
marketIds
string[]
indexerUrl
string
Returns
Promise<Record<string, string | null>>