@somnia-chain/markets-sdk / index / upProbability
Function: upProbability()
upProbability(
rawYes,decimals):number|null
Defined in: packages/sdk/src/units.ts:440
Market-implied Up probability in [0, 1] from a raw YES price, or null
when the price is missing/unusable. One source for header stats and trade
rails so they always agree — pass the book mid, falling back to last price.
Parameters
rawYes
string | bigint | null | undefined
decimals
number | undefined
Returns
number | null