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
| Field | Type | Meaning |
|---|---|---|
journalIdOptional | string | — |
journalOptional | object[] | — |
ledgerRequired | object | object | string | — |
sourceIdRequired | string | — |
fillsRequired | object[] | — |
externalOptional | object | — |
asOfRequired | number | — |
toleranceRequired | object | — |
planHashOptional | string | — |
Complete JSON Schema
Loading…
Output schema
| Field | Type | Meaning |
|---|---|---|
kindRequired | string | — |
schemaVersionRequired | number | — |
asOfRequired | number | Epoch milliseconds |
planHashRequired | string | null | — |
journalIdRequired | string | null | — |
sourceIdRequired | string | — |
reconciledRequired | boolean | — |
ordersRequired | object[] | — |
orderChecksRequired | object[] | — |
fillsRequired | object[] | — |
journaledNotInLedgerRequired | string[] | — |
ledgerNotJournaledRequired | string[] | — |
unresolvedRequired | object[] | — |
portfolioRequired | object | null | — |
assumptionsRequired | object | — |
diagnosticsRequired | object | — |
contentHashRequired | string | — |
Complete JSON Schema
Loading…