Trade lifecycle
Prevents pending or cancelled activity from leaking into booked positions.
TRADING OPERATIONS · PYTHON · CONTROL DESIGN
A control framework for the daily verification work between trade execution and a firm trusting its books.
SYNTHETIC CONTROL RUN
Status errors, stale prices, incorrect position aggregation, and record mismatches can propagate into exposure and P&L. The monitor makes those dependencies visible and testable.
Prevents pending or cancelled activity from leaking into booked positions.
Builds net quantity, average cost, current value, and instrument-level exposure from filled trades.
Classifies prices as healthy, stale, or unavailable before valuation depends on them.
Distinguishes realized performance from the mark-to-market value of open positions.
Compares calculated positions and cost basis against a deliberately imperfect official record.
Converts breaks into severity-ranked issues with an explicit downstream consequence.
TRADING OPERATIONS MONITOR — SUMMARY
Total trades generated: 60 Filled trades: 42 Pending trades: 11 Cancelled trades: 7 Instruments tracked: 5 Reconciliation mismatches: 3 Total exceptions detected: 10
Trade generation, prices, positions, P&L, reconciliation, exceptions, and the dashboard live in distinct modules. A failure in one control remains traceable to one part of the system.
Missing data is surfaced rather than silently imputed. A valuation gap is treated as an exception because a clean-looking but incomplete P&L number is more dangerous than an explicit warning.
The synthetic official book contains quantity and cost-basis differences; the price set includes stale and unavailable observations. A reconciliation system that only sees perfect data has not been tested.
Five CSV exports preserve the underlying trade, position, P&L, reconciliation, and exception records for review.
The project uses generated trades, prices, and official positions. It does not yet model settlement, multi-currency books, fees, corporate actions, or production market-data feeds.