@somnia-chain/markets-sdk / index / Tradable
Interface: Tradable
Defined in: packages/sdk/src/unified/symbols.ts:29
A parsed + resolved tradable: the market it lives on, and (for outcome markets) which outcome book it addresses.
Properties
market
market:
Market
Defined in: packages/sdk/src/unified/symbols.ts:31
The native market row this tradable lives on (union — narrow by marketType).
chainId
chainId:
number
Defined in: packages/sdk/src/unified/symbols.ts:37
Numeric chain id the market lives on. A market is unique to one chain, so this is where every write for the tradable is sent and where every read for it is answered.
marketSymbol
marketSymbol:
string
Defined in: packages/sdk/src/unified/symbols.ts:39
Canonical MARKET symbol (no outcome suffix).
symbol
symbol:
string
Defined in: packages/sdk/src/unified/symbols.ts:41
Canonical tradable symbol (with outcome suffix where applicable).
outcome?
optionaloutcome?:string
Defined in: packages/sdk/src/unified/symbols.ts:43
Outcome label (binary: "YES" | "NO"); undefined for spot.
outcomeIndex?
optionaloutcomeIndex?:number
Defined in: packages/sdk/src/unified/symbols.ts:45
Outcome index (binary: 0 = YES, 1 = NO); undefined for spot.
pool
pool:
`0x${string}`
Defined in: packages/sdk/src/unified/symbols.ts:50
The pool the tradable's orders go to — always market.poolAddress, so it
carries that field's type rather than widening it back to string.