Skip to content
TotalFinance

trade · wire operation

Reconcile an execution journal to the ledger

Join the journal's order states (from the journal store by `journalId`, or inline events) to the ledger's fills under the execution source in both directions, compare delivered fill quantities per order within an explicit tolerance, list the unresolved orders, and — with an external snapshot — compose reconcilePortfolio verbatim. With planHash, exclude other plans’ journaled orders and fills from both joins; unattributed source fills remain discrepancies. External snapshots are judged over the whole portfolio. reconciled is true only when everything agrees and no order is unresolved. No effect; requires trade:paper. Opt-in (tradePack).

totalfinance.trade.reconcile
MCP tool name
totalfinance_trade_reconcile
Pack / profiles
trade / full
Default discovery
Opt-in (select its pack or profile)
Required capabilities
trade:paper
Effects / authorization
none / none
Cost / cancellation
small / Do not assume inline interruption
Handle-eligible inputs
ledger
Idempotency
not-applicable

Input schema

FieldTypeMeaning
journalIdOptionalstring—
journalOptionalobject[]—
ledgerRequiredobject | object | string—
sourceIdRequiredstring—
fillsRequiredobject[]—
externalOptionalobject—
asOfRequirednumber—
toleranceRequiredobject—
planHashOptionalstring—
Complete JSON Schema

Loading…

Output schema

FieldTypeMeaning
kindRequiredstring—
schemaVersionRequirednumber—
asOfRequirednumberEpoch milliseconds
planHashRequiredstring | null—
journalIdRequiredstring | null—
sourceIdRequiredstring—
reconciledRequiredboolean—
ordersRequiredobject[]—
orderChecksRequiredobject[]—
fillsRequiredobject[]—
journaledNotInLedgerRequiredstring[]—
ledgerNotJournaledRequiredstring[]—
unresolvedRequiredobject[]—
portfolioRequiredobject | null—
assumptionsRequiredobject—
diagnosticsRequiredobject—
contentHashRequiredstring—
Complete JSON Schema

Loading…