{s}omniamarkets

@somnia-chain/markets-sdk


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

Type Alias: PerpPortfolioMarket

PerpPortfolioMarket = object

Defined in: query.ts:1794

Perp market context attached to perp portfolio rows. id == poolAddress.

Properties

poolAddress

poolAddress: string

Defined in: query.ts:1796

Pool address (lowercased; == the market id for perp).


baseSymbol

baseSymbol: string | null

Defined in: query.ts:1798

Synthetic-base symbol (e.g. "WBTC"); null when the wrapper exposes none.


quoteSymbol

quoteSymbol: string | null

Defined in: query.ts:1800

Collateral token symbol (e.g. "USDso"); null when the token exposes none.


baseDecimals

baseDecimals: number

Defined in: query.ts:1802

Base-token decimals — format base quantities with this.


quoteDecimals

quoteDecimals: number

Defined in: query.ts:1804

Collateral decimals — format prices/collateral amounts with this.


tickSize

tickSize: string | null

Defined in: query.ts:1806

Price increment, raw quote units per whole base (decimal string).


lotSize

lotSize: string | null

Defined in: query.ts:1808

Quantity increment, raw base units (decimal string).


minQuantity

minQuantity: string | null

Defined in: query.ts:1810

Minimum order quantity, raw base units (decimal string).


lastPrice

lastPrice: string | null

Defined in: query.ts:1812

Last fill price (raw quote per whole base); null until first fill.


marginBank

marginBank: string | null

Defined in: query.ts:1814

Cross-margin MarginBank holding collateral + positions (lowercased).


initialMarginBps

initialMarginBps: number | null

Defined in: query.ts:1816

Initial margin requirement in bps (500 = 5% = 20x max leverage).


fundingRate

fundingRate: string | null

Defined in: query.ts:1821

Funding rate for the last settlement window (1e18-scaled fraction, signed); null until the first FundingUpdated.


indexPrice

indexPrice: string | null

Defined in: query.ts:1823

Oracle index price at the last funding update (raw quote per whole base).