Trade and position reconciliation
The problem
Your internal books say one thing. The broker, the custodian or the exchange says another. Somebody finds the difference in a spreadsheet each morning. When a file arrives late or twice, the numbers move and nobody can say why. When an auditor asks how a break was fixed, the answer lives in an email thread.
What a good solution looks like
- Every source loads idempotently. A file that arrives twice, or a load that retries, does not create duplicate trades.
- Matching rules are code. The keys, tolerances and timing rules for a match are written down, versioned and tested.
- Breaks are data. Each break is a row with a type, an age, an owner and a status. It does not disappear when someone fixes it.
- Fixes leave an audit trail. A manual adjustment records who made it, when, and why.
- Late data has a rule. The system states which day a late file belongs to, and reruns the affected days.
- Alerts cover the process as well as the breaks. A source that did not arrive is a failure, even if it produces zero breaks.
How DataBlock approaches it
- List the sources of truth and the questions each reconciliation must answer.
- Build replay-safe loads for each source, with the raw file kept as received.
- Write the matching rules as tested models, for example in dbt, with lineage from each break back to its source rows.
- Model breaks as a table with status history, and build the daily view your operations team works from.
- Add observability: freshness checks per source, row-count checks, and alerts on a missing file.
- Hand over with docs and a runbook for the common break types.
Related experience
DataBlock has not built a trade reconciliation system for a client yet. The closest work is Edward Plata's: at a healthcare analytics company he owned a shared-savings payout pipeline end to end, from ingestion through reconciliation to the payment figures it produces. Claims ingestion there ran under a zero data-loss contract, with idempotent, replay-safe loads that retry without duplicating records. The data is different. The engineering problem is the same.
Service
This use case maps to data platform engineering.
How long does your team spend on breaks each morning?