Open Source Algo Trading Platform for Everyone
See the codeOpenAlgo is a free, open source, self-hosted trading platform, not just a broker bridge. Built on Python Flask + React 19, it gives traders a full-stack environment to design, host, and execute strategies through 36 broker plugins: 35 securities integrations and Delta Exchange for crypto derivatives. Whether you write Python, prefer drag-and-drop, or trade options, OpenAlgo provides a common interface without tying strategy code to one adapter.
OpenAlgo is no longer just "an API layer in front of your broker." Today it combines four trading surfaces in one self-hosted instance, sharing the active broker session, market-data infrastructure, and six operational data stores across the journey from idea to testing and live execution.
| Surface | Route | Who it's for |
|---|---|---|
| Unified Broker API | /api/v1/ | External platforms: TradingView, Amibroker, ChartInk, Excel, Google Sheets, Python, Java, Go, .NET, Node.js, MetaTrader, GoCharting, N8N. One contract across 36 plugins, with optional operations varying by adapter. |
| Python Strategy Host | /python | Traders who code: paste any Python script into the in-browser CodeMirror editor, schedule it on IST start/stop times, run multiple strategies in parallel with process isolation, watch real-time logs. No external server, no Docker, no cron. |
| Flow: No-Code Strategy Builder | /flow | Traders who don't code: drag-and-drop nodes for market data, indicators, conditions, order execution, and notifications. Webhook triggers for TradingView and external signals built in. JSON import/export for sharing strategies. |
| AI Agent | /agent | Traders who would rather ask: a chat that reads your own market data through OpenAlgo's services, draws charts and payoff diagrams, computes indicators, marks up the /trading chart from a right-side panel, and can place orders only with your explicit approval on every single one. Bring your own model from any LiteLLM provider, or a ChatGPT Plus or Pro subscription, or run it locally against Ollama. |
| Options Trading Suite | /tools | Options traders: twelve built-in analytical tools (Strategy Builder with payoff diagrams & live Greeks, Option Chain, IV Smile, Max Pain, Vol Surface, GEX dashboard, OI Tracker, OI Profile, Straddle Chart, Straddle PnL simulator, Option Greeks history). Each one streams from your connected broker. |
Order workflows from the REST API, hosted strategies, and Flow can use Analyzer Mode before live execution. Analytics pages, dashboards, PnL tracking, latency monitoring, notifications, and MCP reuse the same application services where their specific capabilities apply.
Requires Python 3.12 or newer.
Plugins share OpenAlgo's normalized API shapes. Exchange coverage, authentication, market-data entitlement, GTT support, and other optional capabilities still vary by adapter and broker account.
/api/v1/)A maintained contract with 57 REST method/path pairs under /api/v1:
/flow)Build trading strategies visually without writing code:
true/false and yes/no edge handles, {{var}} interpolation with list indexing/tools)A suite of twelve built-in analytical tools for options trading and market analysis. The pages use the active broker connection; broker market-data entitlements and exchange coverage still apply. Accessible from the Tools page in the sidebar:
| Tool | Route | What it does |
|---|---|---|
| Strategy Builder | /strategybuilder | Build multi-leg option strategies with live Greeks, payoff diagrams, what-if simulators, Strategy Chart, Multi Strike OI tabs, and basket order execution |
| Strategy Portfolio | /strategybuilder/portfolio | Saved strategies across MyTrades and Simulation watchlists |
| Option Chain | /optionchain | Real-time option chain with live Greeks, OI data, and quick order placement |
| Option Greeks | /ivchart | Historical IV, Delta, Theta, Vega, and Gamma charts for ATM options |
| OI Tracker | /oitracker | Open Interest analysis with CE/PE OI bars, PCR overlay, and ATM strike marker |
| Max Pain | /maxpain | Max Pain strike calculation with visual pain distribution across strikes |
| Straddle Chart | /straddle | Dynamic ATM Straddle chart with rolling strike, Spot, and Synthetic Futures overlay |
| Straddle PnL | /straddlepnl | Simulated intraday ATM straddle P&L with automated N-point adjustments and trade log |
| Vol Surface | /volsurface | 3D Implied Volatility surface across strikes and expiries using live option chain data |
| GEX Dashboard | /gex | Gamma Exposure analysis with OI Walls, Net GEX per strike, and top gamma strikes |
| IV Smile | /ivsmile | Implied Volatility smile with Call/Put IV curves, ATM IV, and skew analysis |
| OI Profile | /oiprofile | Futures candlestick with OI butterfly and daily OI change across strikes |
Tools use the active broker's REST and WebSocket capabilities. Data availability and supported exchanges vary by plugin and account entitlement.
Complete testing environment with ₹1 Crore sandbox capital:
Order approval workflow for manual control:
/python)Host and run your Python strategies directly inside OpenAlgo, with no separate VM, no cron, no Docker:
Python Strategy Guide page walks first-time users from an empty editor to a scheduled, running strategyDirect webhook integration for scanner alerts:
/agent)A built-in LLM agent, on the full page and as a right-side panel on the /trading chart:
openalgo.ta, and generates Python strategies using the OpenAlgo SDKConnect AI assistants for natural language trading:
Real-time notifications and command execution:
Latency Monitor: Track order execution performance and round-trip times across brokers
Traffic Monitor: API usage analytics, error tracking, and endpoint statistics
PnL Tracker: Real-time profit/loss with interactive charts powered by TradingView Lightweight Charts
Traffic & Latency Monitor Documentation
Password Security: Argon2 hashing (Password Hashing Competition winner)
Token Encryption: Fernet symmetric encryption with PBKDF2 key derivation
Two-Factor Authentication: TOTP support with authenticator apps
Rate Limiting: Configurable limits for login, API, orders, webhooks
Manual IP Ban System: Monitor and ban suspicious IPs via /security dashboard
Browser Protection: CSP headers, CORS rules, CSRF protection, secure headers, secure sessions
SQL Injection Prevention: SQLAlchemy ORM with parameterized queries
Privacy First: Zero data collection policy - your data stays on your server
Connect your algo strategies and run from any platform:
Receive your strategy alerts directly to Telegram for all platforms.
/agent reasoning loop and tool callingOpenAlgo provides officially supported client libraries for application development and system-level integrations:
| Language / Platform | Repository |
|---|---|
| Python | openalgo-python-library |
| Node.js | openalgo-node |
| Java | openalgo-java |
| Rust | openalgo-rust |
| .NET / C# | openalgo.NET |
| Go | openalgo-go |
OpenAlgo is part of a larger open-source trading ecosystem:
OpenAlgo uses the modern uv package manager for faster, more reliable installations:
# Clone the repository
git clone --filter=blob:none https://github.com/marketcalls/openalgo.git
cd openalgo
# Install UV package manager
pip install uv
# Configure environment
cp .sample.env .env
# Edit .env with your broker API credentials as per documentation
# Run the application using UV
uv run app.py
The application will be available at http://127.0.0.1:5000
For detailed installation instructions, deployment options (Docker, AWS, etc.), and configuration guides, visit docs.openalgo.in/installation-guidelines/getting-started
Complete API reference and examples:
Comprehensive documentation is available at docs.openalgo.in:
We welcome contributions! To contribute:
git checkout -b feature/amazing-feature)git commit -m "feat: add amazing feature"
git push origin feature/amazing-feature)OpenAlgo is released under the AGPL V3.0 License. See License.md for details.
OpenAlgo is built upon the shoulders of giants. We extend our gratitude to all the open-source projects that make this platform possible.
The AI Agent at /agent is deliberately LLM-agnostic. The agent loop and the provider layer are separate pieces, so moving between model vendors, or to a local model, is a configuration change rather than a code change. Both of these projects are what make that possible.
/agent reasoning loop, tool calling, session persistence and image attachmentsThis software is for educational purposes only. Do not risk money which you are afraid to lose. USE THE SOFTWARE AT YOUR OWN RISK. THE AUTHORS AND ALL AFFILIATES ASSUME NO RESPONSIBILITY FOR YOUR TRADING RESULTS.
Always test your strategies in Analyzer Mode before deploying with real money. Past performance does not guarantee future results. Trading involves substantial risk of loss.
Built with by traders, for traders. Making algorithmic trading accessible to everyone.
48 followers · starred Sep 2026
166 followers · starred Jan 2026
107 followers · starred Mar 2026
292 followers · starred Sep 2026
Open Source Algo Trading Platform for Everyone
See the codeOpenAlgo is a free, open source, self-hosted trading platform, not just a broker bridge. Built on Python Flask + React 19, it gives traders a full-stack environment to design, host, and execute strategies through 36 broker plugins: 35 securities integrations and Delta Exchange for crypto derivatives. Whether you write Python, prefer drag-and-drop, or trade options, OpenAlgo provides a common interface without tying strategy code to one adapter.
OpenAlgo is no longer just "an API layer in front of your broker." Today it combines four trading surfaces in one self-hosted instance, sharing the active broker session, market-data infrastructure, and six operational data stores across the journey from idea to testing and live execution.
| Surface | Route | Who it's for |
|---|---|---|
| Unified Broker API | /api/v1/ | External platforms: TradingView, Amibroker, ChartInk, Excel, Google Sheets, Python, Java, Go, .NET, Node.js, MetaTrader, GoCharting, N8N. One contract across 36 plugins, with optional operations varying by adapter. |
| Python Strategy Host | /python | Traders who code: paste any Python script into the in-browser CodeMirror editor, schedule it on IST start/stop times, run multiple strategies in parallel with process isolation, watch real-time logs. No external server, no Docker, no cron. |
| Flow: No-Code Strategy Builder | /flow | Traders who don't code: drag-and-drop nodes for market data, indicators, conditions, order execution, and notifications. Webhook triggers for TradingView and external signals built in. JSON import/export for sharing strategies. |
| AI Agent | /agent | Traders who would rather ask: a chat that reads your own market data through OpenAlgo's services, draws charts and payoff diagrams, computes indicators, marks up the /trading chart from a right-side panel, and can place orders only with your explicit approval on every single one. Bring your own model from any LiteLLM provider, or a ChatGPT Plus or Pro subscription, or run it locally against Ollama. |
| Options Trading Suite | /tools | Options traders: twelve built-in analytical tools (Strategy Builder with payoff diagrams & live Greeks, Option Chain, IV Smile, Max Pain, Vol Surface, GEX dashboard, OI Tracker, OI Profile, Straddle Chart, Straddle PnL simulator, Option Greeks history). Each one streams from your connected broker. |
Order workflows from the REST API, hosted strategies, and Flow can use Analyzer Mode before live execution. Analytics pages, dashboards, PnL tracking, latency monitoring, notifications, and MCP reuse the same application services where their specific capabilities apply.
Requires Python 3.12 or newer.
Plugins share OpenAlgo's normalized API shapes. Exchange coverage, authentication, market-data entitlement, GTT support, and other optional capabilities still vary by adapter and broker account.
/api/v1/)A maintained contract with 57 REST method/path pairs under /api/v1:
/flow)Build trading strategies visually without writing code:
true/false and yes/no edge handles, {{var}} interpolation with list indexing/tools)A suite of twelve built-in analytical tools for options trading and market analysis. The pages use the active broker connection; broker market-data entitlements and exchange coverage still apply. Accessible from the Tools page in the sidebar:
| Tool | Route | What it does |
|---|---|---|
| Strategy Builder | /strategybuilder | Build multi-leg option strategies with live Greeks, payoff diagrams, what-if simulators, Strategy Chart, Multi Strike OI tabs, and basket order execution |
| Strategy Portfolio | /strategybuilder/portfolio | Saved strategies across MyTrades and Simulation watchlists |
| Option Chain | /optionchain | Real-time option chain with live Greeks, OI data, and quick order placement |
| Option Greeks | /ivchart | Historical IV, Delta, Theta, Vega, and Gamma charts for ATM options |
| OI Tracker | /oitracker | Open Interest analysis with CE/PE OI bars, PCR overlay, and ATM strike marker |
| Max Pain | /maxpain | Max Pain strike calculation with visual pain distribution across strikes |
| Straddle Chart | /straddle | Dynamic ATM Straddle chart with rolling strike, Spot, and Synthetic Futures overlay |
| Straddle PnL | /straddlepnl | Simulated intraday ATM straddle P&L with automated N-point adjustments and trade log |
| Vol Surface | /volsurface | 3D Implied Volatility surface across strikes and expiries using live option chain data |
| GEX Dashboard | /gex | Gamma Exposure analysis with OI Walls, Net GEX per strike, and top gamma strikes |
| IV Smile | /ivsmile | Implied Volatility smile with Call/Put IV curves, ATM IV, and skew analysis |
| OI Profile | /oiprofile | Futures candlestick with OI butterfly and daily OI change across strikes |
Tools use the active broker's REST and WebSocket capabilities. Data availability and supported exchanges vary by plugin and account entitlement.
Complete testing environment with ₹1 Crore sandbox capital:
Order approval workflow for manual control:
/python)Host and run your Python strategies directly inside OpenAlgo, with no separate VM, no cron, no Docker:
Python Strategy Guide page walks first-time users from an empty editor to a scheduled, running strategyDirect webhook integration for scanner alerts:
/agent)A built-in LLM agent, on the full page and as a right-side panel on the /trading chart:
openalgo.ta, and generates Python strategies using the OpenAlgo SDKConnect AI assistants for natural language trading:
Real-time notifications and command execution:
Latency Monitor: Track order execution performance and round-trip times across brokers
Traffic Monitor: API usage analytics, error tracking, and endpoint statistics
PnL Tracker: Real-time profit/loss with interactive charts powered by TradingView Lightweight Charts
Traffic & Latency Monitor Documentation
Password Security: Argon2 hashing (Password Hashing Competition winner)
Token Encryption: Fernet symmetric encryption with PBKDF2 key derivation
Two-Factor Authentication: TOTP support with authenticator apps
Rate Limiting: Configurable limits for login, API, orders, webhooks
Manual IP Ban System: Monitor and ban suspicious IPs via /security dashboard
Browser Protection: CSP headers, CORS rules, CSRF protection, secure headers, secure sessions
SQL Injection Prevention: SQLAlchemy ORM with parameterized queries
Privacy First: Zero data collection policy - your data stays on your server
Connect your algo strategies and run from any platform:
Receive your strategy alerts directly to Telegram for all platforms.
/agent reasoning loop and tool callingOpenAlgo provides officially supported client libraries for application development and system-level integrations:
| Language / Platform | Repository |
|---|---|
| Python | openalgo-python-library |
| Node.js | openalgo-node |
| Java | openalgo-java |
| Rust | openalgo-rust |
| .NET / C# | openalgo.NET |
| Go | openalgo-go |
OpenAlgo is part of a larger open-source trading ecosystem:
OpenAlgo uses the modern uv package manager for faster, more reliable installations:
# Clone the repository
git clone --filter=blob:none https://github.com/marketcalls/openalgo.git
cd openalgo
# Install UV package manager
pip install uv
# Configure environment
cp .sample.env .env
# Edit .env with your broker API credentials as per documentation
# Run the application using UV
uv run app.py
The application will be available at http://127.0.0.1:5000
For detailed installation instructions, deployment options (Docker, AWS, etc.), and configuration guides, visit docs.openalgo.in/installation-guidelines/getting-started
Complete API reference and examples:
Comprehensive documentation is available at docs.openalgo.in:
We welcome contributions! To contribute:
git checkout -b feature/amazing-feature)git commit -m "feat: add amazing feature"
git push origin feature/amazing-feature)OpenAlgo is released under the AGPL V3.0 License. See License.md for details.
OpenAlgo is built upon the shoulders of giants. We extend our gratitude to all the open-source projects that make this platform possible.
The AI Agent at /agent is deliberately LLM-agnostic. The agent loop and the provider layer are separate pieces, so moving between model vendors, or to a local model, is a configuration change rather than a code change. Both of these projects are what make that possible.
/agent reasoning loop, tool calling, session persistence and image attachmentsThis software is for educational purposes only. Do not risk money which you are afraid to lose. USE THE SOFTWARE AT YOUR OWN RISK. THE AUTHORS AND ALL AFFILIATES ASSUME NO RESPONSIBILITY FOR YOUR TRADING RESULTS.
Always test your strategies in Analyzer Mode before deploying with real money. Past performance does not guarantee future results. Trading involves substantial risk of loss.
Built with by traders, for traders. Making algorithmic trading accessible to everyone.
48 followers · starred Sep 2026
166 followers · starred Jan 2026
107 followers · starred Mar 2026
292 followers · starred Sep 2026