{s}omniamarkets

@somnia-chain/markets-sdk


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

Type Alias: PortfolioMarket

PortfolioMarket = object

Defined in: query.ts:1188

A market context attached to portfolio rows (subset of BinaryMarket).

Properties

id

id: string

Defined in: query.ts:1193

The market's bytes32 marketId (== BinaryMarket.id). Key positions by this, never by poolAddress alone (a pool is recycled across markets).


marketAddress

marketAddress: string

Defined in: query.ts:1195

The BinaryMarket clone contract's address (lowercased).


poolAddress

poolAddress: string

Defined in: query.ts:1197

The pool serving the market (lowercased; a time-varying binding — see id).


asset

asset: string

Defined in: query.ts:1199

Underlying asset symbol (e.g. "BTC").


question

question: string

Defined in: query.ts:1201

Display question text.


status

status: BinaryMarketStatus

Defined in: query.ts:1203

Lifecycle status (aliased from the indexer's clobStatus).


lastPrice

lastPrice: string | null

Defined in: query.ts:1205

Last fill price (raw, ≈ YES probability × 10^quoteDecimals); null until first fill.


strike

strike: string

Defined in: query.ts:1207

Strike the question resolves against (raw, oracle price scale).


expiry

expiry: string

Defined in: query.ts:1209

Timestamp (unix seconds) trading ends.


winningOutcome?

optional winningOutcome?: number | null

Defined in: query.ts:1211

Winning outcome (0 = YES, 1 = NO); null until Resolved / on a void.


voided

voided: boolean

Defined in: query.ts:1213

True once the market voided (complete sets redeem at par).


quoteDecimals

quoteDecimals: number

Defined in: query.ts:1219

Collateral decimals (per-market — collateral is per-venue, e.g. 6dp TestUSDC vs 18dp USDso). Format prices/balances with this, never a hard-coded 6. Outcome-token amounts mirror the same decimals.