@somnia-chain/markets-sdk / index / UnifiedMarket
Interface: UnifiedMarket
Defined in: unified/structs.ts:21
A unified market object. info is the native Market union row.
Properties
id
id:
string
Defined in: unified/structs.ts:23
Venue-internal id (the native market id: bytes32 for binary, pool for spot).
symbol
symbol:
string
Defined in: unified/structs.ts:28
Canonical MARKET symbol (no outcome suffix), e.g. "SOMI/USDC" or
"BTC-95000-31DEC26/USDC". Key into exchange.markets.
type
type:
UnifiedMarketType
Defined in: unified/structs.ts:30
Market kind — see UnifiedMarketType.
base
base:
string
Defined in: unified/structs.ts:35
Base currency code — for outcome markets, the market's asset-strike-expiry stem (everything before the slash).
quote
quote:
string
Defined in: unified/structs.ts:37
Quote currency code (outcome markets: the collateral token's code).
settle?
optionalsettle?:string
Defined in: unified/structs.ts:42
Settlement currency code. Set on swap (== quote for a linear perp) and outcome markets; absent on spot.
active
active:
boolean
Defined in: unified/structs.ts:44
Derived from live/indexed lifecycle — false once trading is impossible.
contract
contract:
boolean
Defined in: unified/structs.ts:46
ccxt's derivative flag: true only for swap (perp) markets.
precision
precision:
object
Defined in: unified/structs.ts:51
Decimal places implied by the market's tick (price) and lot (amount) grids — what SomniaMarkets.priceToPrecision snaps to.
price
price:
number
Price decimal places (from the tick grid).
amount
amount:
number
Amount decimal places (from the lot grid).
limits
limits:
object
Defined in: unified/structs.ts:58
Order-size floors, human units; min is absent when the pool sets none.
amount
amount:
object
Amount (order size) bounds.
amount.min?
optionalmin?:number
Minimum order size, human base units.
outcomes?
optionaloutcomes?:object[]
Defined in: unified/structs.ts:66
Outcome tradables (binary/categorical). Absent on spot/swap.
symbol
symbol:
string
The outcome's tradable symbol, e.g. "BTC-95000-31DEC26/USDC#YES".
label
label:
string
Outcome label ("YES" / "NO").
index
index:
number
Outcome index on the ERC-6909 singleton (0 = YES, 1 = NO).
info
info:
Market
Defined in: unified/structs.ts:75
The native Market union row (raw strings/bigint-scale fields).