Skip to content
Docs
Edel Markets

Execution architecture

How the off-chain matching and risk engine, durable execution commitment and Canton settlement layer work together.

The performance advantage starts with separation

Edel Markets uses a hybrid architecture: matching, risk and durable order commitment happen off-chain; eligible netted obligations settle on Canton afterward. The system does not send each order to the blockchain and wait for its confirmation before responding. Keeping Canton settlement out of this path supports low-latency execution and high order throughput.

The hybrid design keeps three questions separate: what did the engine execute, what can a client currently observe, and what has Canton confirmed? This distinction explains both speed and the need for precise pending, stale and final states.

System overview

System overview

  • Step
  • On Canton

12 parts and 11 connections.

Off-chain execution produces durable evidence for live views and later Canton settlement.
Read as text
  • Trading terminal → Product API
  • Approved agents / MCP → Product API
  • Ordered admission → Matching + risk
  • Matching + risk → Replicated journal commit
  • Realtime delivery → Shared client state
  • Verified fills + netting → Durable outbox
  • Durable outbox → Canton finality
  • Product API → Ordered admission
  • Replicated journal commit → Realtime delivery
  • Replicated journal commit → Derived read models
  • Replicated journal commit → Verified fills + netting

A deterministic off-chain engine handles execution. Replicated journal evidence commits the outcome. Canton settles netted obligations asynchronously, keeping chain finality off the order acknowledgement path.

Execution and settlement have independent boundaries. The order acknowledgement waits for the off-chain commitment boundary, not a Canton transaction round trip. Risk checks and engine readiness still determine which commands can execute.

Views follow financial evidence. The journal records committed execution. Query stores and realtime delivery publish views derived from that record. A healthy connection or an HTTP acknowledgement alone does not establish a fill, fresh account state or ledger finality.

See execution services for how the product API, execution core, live delivery and settlement connect.

One API layer for trading clients

The terminal, market-making integrations and owner-approved agents connect through our product APIs. REST loads initial state and submits commands; WebSockets carry ongoing market and account updates. Optional MCP tools expose permitted REST operations to compatible assistants.

Ledger integration stays behind those APIs. Clients do not need to handle Canton contract IDs or submit ledger transactions to trade. The terminal focuses on responsive market data, precise order entry, current risk previews and clear status during recovery.

Off-chain execution

Off-chain execution

  1. Trader
  2. Product API
  3. Execution core
  4. Standby
  5. Realtime
  6. Worker
  7. Canton
  1. Execution core – StandbyCommitment covers applied + replicated state
  2. Trader – CantonOrder acknowledgement does not wait for Canton finality
Off-chain commitment precedes asynchronous Canton settlement finality.

Orders reach deterministic matching and an off-chain durability boundary before downstream net settlement. A trading acknowledgement and a Canton-confirmed settlement are different facts.

Trading does not wait for chain finality. Canton settlement is downstream of committed off-chain execution. This removes chain confirmation from the order acknowledgement path; it does not remove risk or durability checks.

Request identity. The public place-order request carries clientOrderId and Idempotency-Key. The response supplies the venue orderId for later order-specific reads and cancellation.

Follow the result after acceptance. A command response reports the instruction’s outcome. Clients use authoritative account streams for fills and position changes; Canton evidence proves settlement.

See the place-order API reference for the request format and settlement for the later ledger lifecycle.

Backend services

Backend services

  • Participant
  • Step
  • On Canton

10 parts and 12 connections.

Committed off-chain execution feeds live delivery, query views and asynchronous Canton settlement.
Read as text
  • Trading applications → Product API
  • Agents → Product API
  • Product API → Execution core
  • Execution core → Replicated execution evidence
  • Replicated execution evidence → Live account and market streams
  • Live account and market streams → Trading applications
  • Replicated execution evidence → Query views
  • Query views → Product API
  • Replicated execution evidence → Settlement processing
  • Settlement processing → Canton confirmation
  • Canton confirmation → Confirmed ledger facts
  • Confirmed ledger facts → Execution core

The API connects clients to the execution core. Committed execution evidence feeds account and market streams, query views and settlement processing.

Execution. The execution core orders eligible commands, applies risk and matching rules, and produces durable off-chain outcomes.

Delivery. WebSockets carry live updates. Query services provide snapshots and history with their own freshness and completeness.

Settlement. Eligible effects are submitted to Canton. Confirmed ledger facts feed settlement status and reconciliation.

From product API to execution

The product API authenticates a request, checks its permissions and validates its fields before sending an eligible command to the execution engine. Idempotency links retries to the same logical command. The execution core orders commands and applies matching and risk rules.

Execution commits off-chain. Settlement follows asynchronously on Canton, so order processing does not wait for a blockchain response. Read services, WebSockets and settlement each expose a different stage of the same financial lifecycle.

Execution, account state and history

Execution can commit before every historical query has caught up. A live position view and a historical position record may therefore have different freshness. Use the response’s available timestamps, sequence metadata and completeness indicators to understand the data you receive.

Build integrations against product-level APIs and streams. Keep accepted commands, current account state and confirmed settlement distinct in your interface. A successful history query does not prove that every live account view is current.

What an execution commitment means

The execution engine orders commands and applies their outcomes off-chain. A committed reply is released only when the outcome reaches the required applied and replicated durability boundary. Replies preserve that order: a later committed response cannot overtake an earlier outcome that is still awaiting commitment.

Off-chain commitment and Canton settlement are separate completion states. An accepted request, an applied outcome, a durably committed outcome and a settled ledger effect are not interchangeable measurements. Use the order lifecycle to distinguish these stages in your application.

Execution commitment

Execution commitment

  • Step

8 parts and 8 connections.

An off-chain committed reply requires both applied state and durable replicated evidence.
Read as text
  • Ordered execution → Applied outcome
  • Ordered execution → Execution journal
  • Execution journal → Durably replicated evidence
  • Applied outcome → Commitment boundary
  • Durably replicated evidence → Commitment boundary
  • Commitment boundary → Ordered committed reply
  • Commitment boundary → Streams, queries and settlement
  • Execution journal → Verified snapshot and journal replay

Command application, journal recording and replication work together to establish a committed outcome. Responses remain ordered while they wait for that boundary.

Durable execution. A reply marked committed requires the relevant outcome to be applied and durably replicated.

Asynchronous settlement. Canton confirmation follows separately; it is not a prerequisite for the off-chain execution reply.

Verified recovery. Snapshots and replay reconstruct state from the same execution history.

Recovery preserves committed history

Recovery validates snapshots against the execution journal before using them. When a snapshot cannot be verified, validated journal replay reconstructs the state. Read projections can be rebuilt from committed evidence without redefining the original execution outcome.

For clients, reconnection alone does not make a saved value current. Validate identity, sequence and replay information before applying updates. If continuity is missing, retain the last-known value with a stale state until supported recovery restores it.

Durability and recovery are part of execution

The execution core records an ordered history of committed outcomes. After an interruption, it rebuilds state from that verified journal. Read models can then be reconstructed from the same history, keeping client views aligned with execution.

Already-funded trading operates off-chain, separately from Canton-dependent funding. During a Canton outage, funding can pause while trading remains subject to its own risk and readiness controls. Availability still depends on the nature of the incident and the venue’s current status.

Read acknowledgements by layer

Each acknowledgement answers a specific question. A transport acknowledgement concerns message delivery or storage. A query-model commit concerns a derived view. An execution commitment confirms the defined off-chain durability boundary. Canton confirmation establishes the relevant ledger fact.

Display the state appropriate to the operation: submitted, accepted, filled, rejected or unresolved for order activity, and the documented settlement status for ledger progression. See account streams and settlement.