How lrvx/lrvx works
lrvx is a cross-language framework for building trading systems. A user authors a strategy, then runs it in backtest, paper, or live mode; market data, indicators, execution, risk, and venue connectors support that work. Replay/data I/O and analytics provide research capabilities, while Python, Node.js, embedded JavaScript, Codon, and C API bindings expose the common toolkit. The MCP server lets AI agents discover and operate parts of the surface. The graph follows README-documented capabilities and sampled references; several subsystem internals were not sampled, so their detailed call paths are omitted.
Main entry points: strategy.h Strategy API · order_router.h Order Execution · backtest_runner.cpp Backtesting · src Exchange Connectors
Components 20
Trading Core
- Strategy API
include/lrvx/strategy/strategy.h - Market Data
include/lrvx/connector/abstract_exchange_connector.h - Bar Aggregation
include/lrvx/aggregator/bar_aggregator.h - Indicators
include/lrvx/indicator/indicator_pipeline.h - Order Execution
include/lrvx/execution/order_router.h - Portfolio Risk
src/risk/portfolio_risk.cpp - Positions
include/lrvx/position/position_tracker.h
Research Data
- Backtesting
src/backtest/backtest_runner.cpp - Paper Trading
python/lrvx/engine_cli.py - Replay and Tape
src/replay/binary_log_reader.cpp - Research Analytics
include/lrvx/backtest/backtest_optimizer.h
Integrations
- Exchange Connectors
connectors/src - Language Bindings
python/lrvx.cpp - Stable C API
src/capi/lrvx_capi.cpp
AI Control
- MCP Control Plane
mcp/lrvx_mcp/server.py - MCP Tools
mcp/lrvx_mcp/tools
Venue Product
- Matching Venue
venue/include/lrvx-venue/matching_engine.h - Venue Sessions
venue/include/lrvx-venue/engine/session.h
Other components
- Strategy User
- AI Coding Agent
Connections 20
- Strategy User → Strategy API: authors
README.md - Market Data → Bar Aggregation: feeds
- Bar Aggregation → Indicators: provides bars
- Strategy API → Backtesting: runs in
README.md - Strategy API → Paper Trading: runs in
README.md - Strategy API → Order Execution: drives
- Strategy API → Indicators: uses
README.md - Backtesting → Research Analytics: optimizes
- Replay and Tape → Backtesting: supplies data
- Exchange Connectors → Market Data: implements feeds
README.md - Exchange Connectors → Order Execution: implements orders
- Order Execution → Positions: updates
- Positions → Portfolio Risk: informs
- Strategy API → Language Bindings: exposed through
README.md - Language Bindings → Stable C API: integrates via
- AI Coding Agent → MCP Control Plane: requests tools
README.md - MCP Control Plane → MCP Tools: dispatches
mcp/lrvx_mcp/server.py - MCP Tools → Strategy API: supports authoring
README.md - Strategy User → Matching Venue: operates venue
README.md - Matching Venue → Venue Sessions: sequences sessions
venue/include/lrvx-venue/matching_engine.h