@somnia-chain/markets-sdk / index / PerpPortfolio
Type Alias: PerpPortfolio
PerpPortfolio =
object
Defined in: packages/sdk/src/perp/portfolio.ts:126
A wallet's perp portfolio — the shape SomniaMarketsClient.getPerpPortfolio returns.
Properties
account
account:
string
Defined in: packages/sdk/src/perp/portfolio.ts:128
The queried account (lowercased).
openOrders
openOrders:
PerpPortfolioOrder[]
Defined in: packages/sdk/src/perp/portfolio.ts:130
Currently-open perp orders, newest first.
trades
trades:
PerpPortfolioTrade[]
Defined in: packages/sdk/src/perp/portfolio.ts:132
Recent perp fills the account participated in, newest first.
tradesTruncated
tradesTruncated:
boolean
Defined in: packages/sdk/src/perp/portfolio.ts:140
The read hit its tradesLimit, so fills older than the last entry in trades exist
and were NOT returned. Raise tradesLimit for the rest.
A total folded from a truncated trades covers part of the history only.
False when the page was short, and false for tradesLimit: 0, which asks for
no trades at all.
tradesSince
tradesSince:
number
Defined in: packages/sdk/src/perp/portfolio.ts:146
The lower time bound the trades leg was read with, unix seconds — since when
passed, otherwise now minus seven days (DEFAULT_TRADES_SINCE_SEC). Echoed so a UI can
label the list and a caller can page further back. Orders are not windowed.