Multi-Asset Market Making System Architecture: An Engineering Deep Dive
This article explains how to design and operate a multi-asset market making system as a distributed engineering platform rather than a single trading program. It covers the core technical challenges of real-time processing, consistency, risk control, and operability; a layered architecture with unified abstractions across the access, normalization, strategy, risk, execution, and data layers; low-latency link design; unified domain modeling across asset classes; automated and auditable risk and compliance controls; deterministic replay and data governance; observability-driven stability; cloud deployment and elastic architecture; and a phased implementation roadmap from a single-asset loop to a full platform. It is intended for engineers building low-latency, high-concurrency trading infrastructure.
1. Business Context: The Technical Nature of a Multi-Asset Market Making System
A multi-asset market making system is not a simple stack of standalone trading programs. It is a distributed engineering system built for high concurrency, low latency, and strong risk control. Its core goal is to provide continuous quoting and liquidity support across multiple trading venues for different asset classes. Common asset classes include equities, futures, options, exchange-traded funds, and digital assets. These assets differ significantly in trading mechanisms, settlement methods, volatility characteristics, order book structure, and compliance requirements, so the system must offer unified abstraction and flexible adaptation.
From a technical perspective, a market making system must solve four classes of problems at once:
- Real-time processing: Market data changes quickly, quotes must be updated promptly, and the order path should be as short as possible.
- Consistency: When multiple markets, accounts, and strategies run in parallel, order state, fill reports, and inventory data must remain consistent.
- Risk control: Quotes, cancellations, positions, funds, and compliance limits require multi-layer validation.
- Operability: The system must support monitoring, replay, fault localization, canary releases, and capacity assessment.
Therefore, the design of a market making system cannot focus only on “trading speed”; it must also address engineering completeness. A mature system is typically composed of a market data access layer, a strategy computation layer, a risk control layer, an execution layer, a data platform, and an infrastructure layer.
2. Overall Architecture: Layered Decoupling and Unified Abstraction
A practical multi-asset market making system should adopt a layered architecture. The purpose of layering is not to add complexity, but to let modules that change at different rates evolve independently.
2.1 Access Layer
The access layer connects to different trading venues, receives market data, sends orders, and handles fill reports and cancellation confirmations. Because different markets have different protocols, fields, error codes, and trading calendars, the access layer should use the adapter pattern to encapsulate external differences within the boundary.
The access layer must address:
- Market data subscription and incremental updates;
- Order submission and state confirmation;
- Reconnection after disconnection and sequence number recovery;
- Trading sessions, holidays, and special trading mechanisms;
- Error code standardization and tiered alerting.
2.2 Market Data Normalization Layer
Raw market data often comes in varied formats and must be converted into a unified event model. The unified model should contain at least:
MarketEvent {venue_idinstrument_idtimestampevent_typebid_priceask_pricebid_sizeask_sizelast_pricesequence_no}
After normalization, the strategy layer no longer needs to care about underlying protocol differences and only handles the unified event stream.
2.3 Strategy Computation Layer
The strategy layer generates quotes based on market data, inventory, risk budget, and market state. A typical market making strategy jointly considers the bid-ask spread, market volatility, order book depth, inventory skew, and expected fill probability. The strategy layer should remain stateless or weakly stateful, with state externalized to an in-memory database or event-sourced store as much as possible, to enable fast recovery and horizontal scaling.
2.4 Risk Control Layer
Risk control must be independent of the strategy. The strategy may pursue returns; risk control is responsible for enforcing boundaries. Risk control is usually divided into three layers:
- Pre-trade risk control: account, funds, permissions, and product scope checks;
- In-trade risk control: quote deviation, maximum order size, cancellation frequency, and position limits;
- Post-trade risk control: fill statistics, inventory reconciliation, and abnormal trading review.
Illustrative code:
function processQuote(quote):if not preTradeRisk.check(quote):return reject("pre_trade_risk")if not strategy.approve(quote):return reject("strategy")if not realtimeRisk.check(quote):return reject("realtime_risk")executor.send(quote)
2.5 Execution Layer
The execution layer manages the order lifecycle, including submission, confirmation, fills, cancellations, rejections, and retries. The execution layer must guarantee idempotency to avoid duplicate orders caused by network jitter. A common approach is to use client order IDs, local sequence numbers, and a state machine to manage order state.
Order states can be abstracted as:
NEW -> SENT -> ACKED -> PARTIALLY_FILLED -> FILLED|-> CANCELED|-> REJECTED
2.6 Data Platform
The data platform handles the collection and storage of market data, orders, fills, risk control logs, and strategy metrics. Object storage is suitable for historical data, message queues are suitable for decoupling real-time streams from offline analysis, logging services are suitable for auditing and issue tracing, and monitoring and alerting are used to detect anomalies in real time.
3. Low-Latency Link Design: Eliminating Unnecessary Work
Low latency is not purely about pursuing hardware performance; it is about removing ineffective paths in the system. From an engineering standpoint, you can start with:
- Event-driven processing: Avoid polling and frequent lock contention; use event queues to drive processing.
- Memory-first: Keep hot-path data in memory as much as possible to reduce disk and remote calls.
- Combining batch and incremental: Process market data updates incrementally, and persist to disk asynchronously in batches.
- Serialization optimization: Use compact binary formats for internal communication to reduce parsing overhead.
- Time synchronization: Use a unified time source to keep market data, orders, and fill logs aligned.
- Hotspot isolation: Use separate thread pools or resource groups for different assets and strategies to avoid mutual interference.
Pseudocode example:
onMarketEvent(event):normalized = normalizer.toCommon(event)state = book.update(normalized)quote = strategy.onBookChange(state)if quote != null:risk.checkAndSend(quote)
The key point is that once market data enters the system, normalization and state updates should be completed as quickly as possible, and the strategy should process only changes rather than repeatedly computing the full dataset.
4. Unified Multi-Asset Modeling: Absorbing Differences Through Abstraction
The difficulty of a multi-asset system lies in the differences. Equities focus on the order book and tick-by-tick trades; futures focus on contract months and margin; options focus on Greeks, implied volatility, and expiration dates; digital assets focus on on-chain confirmation, funding rates, and high volatility. If a separate logic set is written for each asset, the system will quickly spiral out of control.
A unified domain model is recommended:
- Instrument: uniformly describes asset identifiers, trading status, minimum price increment, and trading sessions.
- Order: uniformly describes order side, price, quantity, type, and lifecycle.
- Fill: uniformly describes fill price, quantity, fees, and settlement information.
- Position: uniformly describes inventory, average price, unrealized P&L, and risk exposure.
- RiskLimit: uniformly describes limit types and thresholds.
Differences are implemented through plugins or adapters. For example, options require additional volatility and sensitivity calculations, and digital assets require handling different settlement cycles. These can all be extension modules rather than intrusions into the core link.
5. Risk Control and Compliance: Moving Constraints into the System Design
The high-frequency nature of a market making system means that risk incidents often amplify within milliseconds. Therefore, risk control cannot rely on manual intervention; it must be automated, layered, and auditable.
5.1 Limit System
Common limits include:
- Maximum quantity per single order;
- Maximum position per single asset;
- Maximum loss per single strategy;
- Maximum quote deviation;
- Cancellation frequency cap;
- Fund cap per single account.
5.2 Circuit Breaker Mechanism
When the market fluctuates sharply, system latency rises, or error rates increase, the system should automatically reduce quoting frequency, widen spreads, or pause new orders. Circuit breaker strategies should be tiered, for example:
level_1: reduce quoting frequencylevel_2: pause some strategieslevel_3: fully stop sending new orderslevel_4: enter manual review mode
5.3 Auditing and Replay
All key events should be recorded, including market data snapshots, strategy inputs, risk control results, order submissions, and fill reports. Audit logs should not only be queryable but also support timeline-based replay, in order to review incidents and validate strategies.
6. Data Governance and Deterministic Replay
A market making system must be able to answer “why did we quote this way at that moment.” This requires the system to have deterministic replay capability. Implementation approaches include:
- Recording raw market data and internal normalized events;
- Recording strategy versions, parameter versions, and risk rule versions;
- Using a unified event sequence number to guarantee ordering;
- Disabling real order submission during replay, outputting only decision results;
- Comparing live and replay results to locate deviations.
Data layers can be designed as:
- Raw layer: stores access data without modification;
- Standardized layer: unifies fields and the event model;
- Metrics layer: generates latency, fill rate, inventory, and P&L metrics;
- Audit layer: stores decision rationale and compliance records.
7. Stability Engineering: Observability First
The stability of a complex trading system comes from observability. Developers need to know where the system is “slow, wrong, and rejecting.”
7.1 Metrics Monitoring
Core metrics include:
- Market data reception latency;
- Strategy computation time;
- Risk control time;
- Order submission success rate;
- Fill report latency;
- Inventory skew;
- Error code distribution;
- Queue backlog length.
7.2 Logging and Tracing
Logs should be structured, containing event sequence numbers, asset identifiers, strategy IDs, order IDs, and error reasons. For cross-module requests, a unified trace identifier can be used to correlate the market data, strategy, risk control, and execution links.
7.3 Tiered Alerting
There should not be too many alerts, or they lose their meaning. It is recommended to divide them into:
- Critical: order link interruption, risk control failure, fund anomalies;
- Important: sustained latency increase, rising error rates, queue backlog;
- General: single-point retries, non-critical metric fluctuations.
8. Cloud Deployment and Elastic Architecture
In a cloud environment, a multi-asset market making system can adopt containerized deployment and unified service governance. A container platform is suitable for fast releases and environment isolation; service governance is used for traffic control, circuit breaking, and canary releases; message queues are used for asynchronous decoupling; object storage is used for historical data archiving; logging services are used for auditing; and monitoring and alerting are used for real-time observation.
Points to note during deployment:
- Isolate hot-path services from offline analysis services;
- Isolate resources across different asset strategies;
- Deploy critical services with multiple replicas;
- Configuration changes must go through canary release;
- Perform replay validation before release;
- Capacity assessment must be based on peak market data, not averages.
9. Implementation Roadmap: From a Minimum Viable Loop to a Platform
It is recommended that teams proceed in the following phases:
- Single-asset loop: complete market data access, simple quoting, order submission, and basic risk control.
- Multi-asset expansion: abstract a unified model and add adapters.
- Risk control refinement: establish three-layer pre-trade, in-trade, and post-trade risk control.
- Data platforming: implement auditing, metrics, and replay.
- Intelligent enhancement: introduce more complex inventory models and volatility estimation.
- Platform operation: support multiple strategies, accounts, regions, and canary releases.
10. Summary
The core competitiveness of a multi-asset market making system lies not only in trading algorithms but in a complete engineering system. A low-latency link, a unified asset model, layered risk control, deterministic replay, and observability together form the foundation of the system. In practice, developers should avoid reducing the problem simply to “optimizing speed” and instead design systematically across four dimensions: architecture, data, risk control, and operations. Only by combining real-time trading capability with robust engineering capability can you build a multi-asset market making platform that evolves sustainably.
