How marketcalls/openalgo works
OpenAlgo is a self-hosted algorithmic trading platform spanning broker integrations, strategy authoring, market analysis, and execution. The documented user journey is to connect a broker, submit trades or strategy signals through one of several trading surfaces, optionally validate orders in Analyzer Mode, and execute against the active broker; options tools and real-time streaming provide additional market-data workflows. README statements establish most product-level links below. Source excerpts additionally show sandbox execution and strategy lifecycle behavior; unsampled implementation details are not inferred.
Main entry points: market_data_service.py Market Data Service · execution_engine.py Analyzer Sandbox · broker Broker Plugins · core.py Unified Broker API
Components 20
Trading Surfaces
- Web Application
frontend/src/App.tsx - Unified Broker API
blueprints/core.py - Python Strategy Host
blueprints/python_strategy.py - Flow Builder
blueprints/flow.py - Flow Executor
services/flow_executor_service.py - AI Agent
blueprints/agent.py - MCP Interface
services/agent/mcp/client.py
Market Data and Analysis
- Options Tools
blueprints/strategy_chart.py - Market Analytics
services/arbitrage_service.py - Market Data Service
services/market_data_service.py
Execution and Brokers
- Analyzer Sandbox
sandbox/execution_engine.py - Sandbox Order Manager
sandbox/order_manager.py - Broker Plugins
broker - WebSocket Proxy
websocket_proxy/server.py - Strategy Engine
services/strategy_module/engine.py
Platform Services
- Symbol and Token Data
database/token_db_enhanced.py - Sandbox Store
database/sandbox_db.py - Auth and Broker Sessions
database/auth_db.py - Flask Application
app.py
Other components
- Trader or Client
Connections 26
- Trader or Client → Web Application: uses
README.md - Trader or Client → Unified Broker API: submits signals
README.md - Trader or Client → Python Strategy Host: hosts strategies
README.md - Trader or Client → Flow Builder: builds strategies
README.md - Trader or Client → AI Agent: requests analysis
README.md - Trader or Client → Options Tools: explores options
README.md - Flow Builder → Flow Executor: executes flows
README.md - AI Agent → Market Data Service: reads market data
README.md - AI Agent → MCP Interface: offers MCP
README.md - Options Tools → Market Data Service: streams data
README.md - Market Analytics → Market Data Service: uses shared feed
- Unified Broker API → Broker Plugins: routes orders
README.md - Python Strategy Host → Broker Plugins: executes trades
README.md - Flow Executor → Broker Plugins: executes orders
README.md - Unified Broker API → Analyzer Sandbox: tests orders
README.md - Python Strategy Host → Analyzer Sandbox: tests orders
README.md - Flow Executor → Analyzer Sandbox: tests orders
README.md - Analyzer Sandbox → Sandbox Order Manager: manages orders
sandbox/execution_engine.py - Sandbox Order Manager → Sandbox Store: persists orders
sandbox/order_manager.py - Analyzer Sandbox → Market Data Service: fetches quotes
sandbox/execution_engine.py - WebSocket Proxy → Market Data Service: distributes feed
websocket_proxy/server.py - Market Data Service → Broker Plugins: connects streams
- Strategy Engine → Broker Plugins: dispatches orders
services/strategy_module/engine.py - Unified Broker API → Symbol and Token Data: resolves symbols
- Flask Application → Auth and Broker Sessions: manages sessions
app.py - Flask Application → Web Application: serves application