Engineering · TRUEFIX LABS

Trading System Architecture: Market Data, OMS, Risk and Execution

How to separate market data, instrument identity, OMS, risk, execution, and reconciliation in a multi-venue trading platform.

Short answer. A trading system is easier to reason about when market data, instrument identity, order management, risk, execution, and reconciliation are separate boundaries with explicit contracts. The critical design rule is that a strategy may produce intent, but only an execution kernel with current permissions, risk checks, idempotency, and provider evidence can send an order.

System boundaries

Market data describes observations; strategy code turns observations into an intent; the OMS tracks order identity and lifecycle; the risk engine checks limits; the execution adapter translates an approved command; reconciliation compares local state with provider snapshots. Keep these boundaries visible in code and in logs.

Data flow

Quotes / bars → Strategy context → Trading intent → Risk decision → Approved command → Provider order → Receipts → Reconciliation

Every transition should carry an account, environment, instrument identity, revision, timestamp, and evidence reference.

Trade-offs

  • A shared canonical model reduces application complexity but must preserve provider-native details.
  • Strong consistency is expensive at the edge; use durable state and explicit eventual-consistency recovery.
  • More adapters improve coverage but increase contract and conformance-test cost.

Failure modes

Do not let a missing symbol mapping silently route to another venue. Do not treat a timeout as a rejected order. Do not rebuild positions only from local events. These shortcuts create duplicate orders and silent drift.

Sources

Last verified: 2026-09-28. Provider capabilities can change by region, account, product, environment, and entitlement; verify the linked official documentation before production use.

Last updated: 2026-09-28