openalgo
The Open Source Trading Ecosystem for Everyone.
What is openalgo?
The Open Source Trading Ecosystem for Everyone.
Overview of openalgo
What it is
OpenAlgo is a free, open source, self-hosted algorithmic trading platform built on Python Flask and React 19. It provides a full-stack environment for designing, hosting, and executing trading strategies through 39 broker plugins, including Dhan Sandbox and Delta Exchange for crypto derivatives. The platform combines four trading surfaces in one self-hosted instance: a Unified Broker API, a Python Strategy Host, a no-code Flow strategy builder, and an AI Agent. It also includes an Options & Portfolio Suite with twenty built-in analytical tools. OpenAlgo requires Python 3.12 or newer and is licensed under AGPL-3.0.
Key features
- Unified REST API layer with 76 method/path pairs for order management, portfolio, market data, and advanced features like option Greeks and margin calculators.
- Real-time WebSocket streaming via a unified proxy server using ZMQ for normalized data across brokers, with automatic reconnection.
- Flow visual strategy builder with a node-based editor, pre-built nodes for market data, indicators, conditions, and order execution, plus webhook triggers and JSON import/export.
- Python Strategy Host with an in-browser CodeMirror editor, scheduled IST start/stop times, parallel strategy execution with process isolation, and real-time logs.
- AI Agent that reads market data, draws charts and payoff diagrams, computes indicators, and places orders only with explicit user approval, supporting multiple LLM providers.
- Options & Portfolio Suite with 20 analytical tools including Strategy Builder, Option Chain, Greeks history, OI Tracker, Max Pain, Straddle Chart, Vol Surface, GEX Dashboard, Portfolio Backtester, SIP Backtester, and Sector Rotation.
Use cases
OpenAlgo is suitable for traders who want to design, test, and execute algorithmic trading strategies without being tied to a single broker adapter. It can be used for options trading with live Greeks and payoff diagrams, portfolio backtesting and analysis, sector rotation tracking, and automated order execution via REST API, Python scripts, or visual flows. The platform also supports external integrations with TradingView, Amibroker, Excel, Google Sheets, and other tools through its unified API.
Getting started
See the repository README for installation and upgrade instructions.
License and pricing
OpenAlgo is licensed under AGPL-3.0 and is free and open source.
Based on the project's public README and repository metadata.