@somnia-chain/markets-sdk / index / Portfolio
Type Alias: Portfolio
Portfolio =
object
Defined in: packages/sdk/src/binary/portfolio.ts:316
A wallet's binary portfolio — the shape SomniaMarketsClient.getPortfolio returns.
Properties
account
account:
string
Defined in: packages/sdk/src/binary/portfolio.ts:318
The queried account (lowercased).
positions
positions:
PortfolioPosition[]
Defined in: packages/sdk/src/binary/portfolio.ts:320
Non-zero outcome-token positions (up to 200, largest balance first).
openOrders
openOrders:
PortfolioOrder[]
Defined in: packages/sdk/src/binary/portfolio.ts:322
Currently-open binary orders, newest first.
trades
trades:
PortfolioTrade[]
Defined in: packages/sdk/src/binary/portfolio.ts:324
Recent binary fills the account participated in, newest first.
tradesTruncated
tradesTruncated:
boolean
Defined in: packages/sdk/src/binary/portfolio.ts:332
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/binary/portfolio.ts:338
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. Positions and orders are not windowed.