Technical Architecture and Intelligent Evolution of Market Data Software
This article breaks down the technical architecture of market data software across five capability layers, from data ingestion and computation to distribution, interaction, and execution. It explains the engineering constraints of low-latency tick streaming, the consistency design of technical and fundamental calculation engines, the three-stage path from rule-based screening to AI agents, and the key practices for backtesting and cloud synchronization. It closes with a phased implementation approach and a mapping of general-purpose cloud capabilities.
1. From a Single Terminal to a Comprehensive Platform
At its core, market data software collects financial information scattered across multiple markets and data sources, then cleans, standardizes, computes, and distributes it, finally delivering it to investors in a visual and interactive form. Early systems solved only the “visibility” problem: they pushed exchange quotes to a terminal screen and layered a few simple charts on top. As investor needs diversified, these systems gradually integrated news, financial statements, community discussion, and trade execution, evolving from a tool into a comprehensive investment service platform.
From a technical perspective, a modern market data platform can be decomposed into five capability layers:
- Data ingestion layer: Covers equities, futures and options, FX, and other markets, and must adapt to each market’s push protocols, update frequency, and trading calendar.
- Data computation layer: Includes K-line aggregation, indicator formula evaluation, capital flow statistics, and theme and market-breadth tracking.
- Data distribution layer: Tick-level push, incremental snapshot merging, reconnect resume, and multi-device synchronization.
- Interaction and intelligence layer: Chart rendering, smart stock screening, alerting, AI assistants, and AI-generated briefings.
- Execution and review layer: Brokerage channel integration, strategy backtesting engine, and post-market attribution analysis.
It is worth stressing that expanding functionality does not simplify the architecture. Quite the opposite: multi-market coverage and millisecond-level push requirements drive the system toward a “read/write separation plus unified stream and batch processing” design, which is the premise for the rest of this article.
2. Real-Time Data Pipeline: Engineering Constraints of Low-Latency Push
The first-order constraint of a market data system is the tension between latency and throughput. Tick-level data spikes during market open, so capacity must be sized for the peak rather than the average.
A typical layered design looks like this:
- Ingestion gateway: Maintains long-lived connections and handles protocol parsing, heartbeat keep-alive, and rate limiting; applies backpressure per connection so slow consumers cannot drag down the server.
- Message bus: A message queue absorbs the burst, partitioned by contract code or market to preserve ordering for the same instrument.
- Stream computation: Incrementally aggregates into 1-minute, 5-minute, and daily bars while updating indicator state; windowed computation must handle out-of-order and late-arriving data.
- Distribution service: Maintains dual “snapshot plus incremental” channels. A new connection first receives a snapshot, then switches to increments, avoiding a full replay.
Illustrative incremental merge logic (pseudocode):
def on_tick(client, tick):# Idempotency: deduplicate by sequence/timestamp to prevent replay after reconnectif tick.seq <= client.last_seq[tick.symbol]:returnclient.last_seq[tick.symbol] = tick.seqclient.buf[tick.symbol].apply(tick) # incrementally update the local snapshotif client.buf_dirty_ms() > 200: # batch refresh to balance smoothness and overheadclient.flush()
Three engineering points matter here. First, idempotency: no reconnect or replay may corrupt the user’s view. Second, batch refresh: decouple render frequency from push frequency. Third, graceful degradation: under congestion, prioritize quotes and backfill news later to keep the core usable.
3. Technical Analysis and Fundamentals: Consistency Design of the Calculation Engine
Indicator formulas such as moving averages, MACD, and relative-strength indicators look simple; the hard part is consistency: the same instrument opened on different clients at different times must produce exactly the same result. In practice, a dual-track mechanism of “incremental maintenance plus periodic full recalculation” is common: the streaming path provides low latency, while the batch path periodically recomputes and realigns, correcting floating-point accumulation error and late-arriving data.
Fundamentals such as financial indicators and capital flow are a typical batch-first scenario: raw snapshots can be stored in object storage, periodic computation jobs can run on a container platform, and results can be written to a cache for online queries. The statistical definition of capital flow must be stated explicitly (the rule for classifying active buys and sells, the handling of cancellations); otherwise different modules will produce contradictory numbers.
4. Intelligent Evolution: From Rule-Based Screening to Dynamic Rebalancing
Intelligence is not a single feature but a three-stage progression: rules, then models, then agents.
- Rules stage: Smart rankings, conditional alerts, and formula-based screening, with logic that is explainable and auditable.
- Models stage: Machine learning for classification and ranking, with logging services and monitoring/alerting to track feature drift and performance decay.
- Agents stage: Large language models handle information extraction, interactive Q&A, and AI briefing generation, turning “look up data” into “ask a question.”
The boundaries need to be clear: model output must be traceable to source data and the computation process, and recommendations involving risk alerts or dynamic rebalancing should keep a human confirmation step. Compliance and explainability take priority over the degree of automation, which is a widely shared view in the industry.
5. Strategy Backtesting and Cloud Synchronization
The core of a backtesting engine is avoiding look-ahead bias: signals may only use data visible at the time, fill prices must simulate slippage and fees, and matching must handle price limits, trading halts, and insufficient liquidity. The recommended practice is to share the same indicator and signal code between backtesting and live trading, swapping only the data source and the executor, which eliminates the implementation gap behind “profitable in backtest, losing in live trading.”
Synchronizing charts and strategies to the cloud is essentially a configuration-centric design: layouts, indicator parameters, and watchlist groups are abstracted into versioned configuration objects, and conflicts are resolved by “most recent modification plus explicit merge” rather than simple overwrite.
6. Implementation Advice and General-Purpose Cloud Capabilities
To build a similar system on Baidu AI Cloud, you can map it onto general-purpose capabilities: a container platform hosts stateless gateways and computation jobs, a message queue absorbs market data bursts, object storage archives historical data, a cache service supports online queries, logging and monitoring/alerting provide observability, and a data warehouse supports post-market analysis and attribution.
A three-step rollout is suggested. First, get the minimal loop of “ingestion, push, chart” working end to end and load-test the peak. Second, add indicator consistency, backtesting, and alerting. Third, introduce AI Q&A and AI briefings while building an evaluation set and a human review mechanism in parallel. Frequent iteration should be paired with canary releases and feature flags to keep the risk of feature expansion within a rollback-able range.
