@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / Tradable

Interface: Tradable

Defined in: packages/sdk/src/unified/symbols.ts:25

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:27

The native market row this tradable lives on (union — narrow by marketType).


marketSymbol

marketSymbol: string

Defined in: packages/sdk/src/unified/symbols.ts:29

Canonical MARKET symbol (no outcome suffix).


symbol

symbol: string

Defined in: packages/sdk/src/unified/symbols.ts:31

Canonical tradable symbol (with outcome suffix where applicable).


outcome?

optional outcome?: string

Defined in: packages/sdk/src/unified/symbols.ts:33

Outcome label (binary: "YES" | "NO"); undefined for spot.


outcomeIndex?

optional outcomeIndex?: number

Defined in: packages/sdk/src/unified/symbols.ts:35

Outcome index (binary: 0 = YES, 1 = NO); undefined for spot.


pool

pool: `0x${string}`

Defined in: packages/sdk/src/unified/symbols.ts:40

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.