portfolio · wire operation
Explain portfolio P&L between two marks
Explain the change in net asset value between two dated valuation marks: external flows, investment return, and the identity components (realized, unrealized, income, transaction costs, financing, foreign exchange) that reconcile to it with a published residual, by currency and by grouping. The result is portfolioPnl(...) verbatim.
totalfinance.portfolio.explain_pnl- MCP tool name
- totalfinance_portfolio_explain_pnl
- 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
- ledger, from.market, to.market
- Idempotency
- not-applicable
Input schema
| Field | Type | Meaning |
|---|---|---|
ledgerRequired | object | A serialized portfolio ledger (totalfinance.portfolio-ledger, the FC7 JSON form) |
fromRequired | object | The opening valuation mark |
toRequired | object | The closing valuation mark (strictly after `from`) |
instrumentClassificationOptional | object | Identity metadata per instrument for grouping; unknown instruments group as unclassified |
Complete JSON Schema
Loading…
Output schema
| Field | Type | Meaning |
|---|---|---|
baseCurrencyRequired | string | — |
fromRequired | object | — |
toRequired | object | — |
netAssetValueChangeRequired | number | — |
externalFlowsRequired | number | — |
investmentReturnRequired | number | — |
componentsRequired | object | realized, unrealized, income, costs, financing, FX, total |
residualRequired | number | — |
byCurrencyRequired | object[] | — |
groupingsRequired | object[] | — |
assumptionsRequired | object | Applied conventions |
diagnosticsRequired | object | Engine, method, warnings |
Complete JSON Schema
Loading…