Skip to content
TotalFinance

portfolio · wire operation

Value a portfolio at an instant

Value every cash balance and position of a portfolio at one instant from a Gate B market snapshot: net asset value in the base currency, per-account cash rows (settled and unsettled), per-position marks, cost basis and unrealized P&L. Supply the portfolio as its serialized ledger envelope (re-hydrated through readPortfolioLedgerSnapshot) or as a derived PortfolioState. The result is portfolioSnapshot(...) verbatim.

totalfinance.portfolio.snapshot
MCP tool name
totalfinance_portfolio_snapshot
Pack / profiles
portfolio / full, portfolio
Default discovery
Opt-in (select its pack or profile)
Required capabilities
None
Effects / authorization
none / none
Cost / cancellation
small / Do not assume inline interruption
Handle-eligible inputs
portfolio, market
Idempotency
not-applicable

Input schema

FieldTypeMeaning
portfolioRequiredobject | objectA serialized ledger envelope (re-hydrated through readPortfolioLedgerSnapshot) or a PortfolioState
asOfRequirednumber | stringThe valuation instant
marketRequiredobjectA Gate B market snapshot (totalfinance.market-snapshot); its interior is re-validated by the read door
currencyConversionsOptionalobject[]Quotes to the base currency — required exactly when the portfolio holds non-base currency
Complete JSON Schema

Loading…

Output schema

FieldTypeMeaning
asOfRequirednumber—
baseCurrencyRequiredstring—
netAssetValueRequirednumber—
cashRequiredobject[]—
totalCashBaseCurrencyValueRequirednumber—
positionsRequiredobject[]—
totalPositionsBaseCurrencyValueRequirednumber—
assumptionsRequiredobjectApplied conventions
diagnosticsRequiredobjectEngine, method, warnings
Complete JSON Schema

Loading…