OpenAlgo - Open Source Algorithmic Trading Platform
What is OpenAlgo?
OpenAlgo 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.
Five Ways to Trade with OpenAlgo
| 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.
Video Tutorial
Quick Links
- Documentation: docs.openalgo.in
- Installation Guide: Getting Started
- Upgrade Guide: Upgrade Instructions
- Why OpenAlgo: Why Build with OpenAlgo
Python Compatibility
Requires Python 3.12 or newer.
Supported Brokers (36 plugins)
View All Supported Brokers
- 5paisa (Standard + XTS)
- AliceBlue
- AngelOne
- Arrow
- Compositedge
- Definedge
- Delta Exchange
- Dhan (Live + Sandbox)
- Firstock
- Flattrade
- Fyers
- Groww
- HDFC Securities
- HDFC Sky
- IBulls
- IIFL
- Iiflcapital
- Indmoney
- JainamXTS
- Kotak Neo
- Motilal Oswal
- Mstock
- Nubra
- Paytm Money
- Pocketful
- RMoney
- Samco
- Shoonya (Finvasia)
- Tradejini
- TradeSmart
- Upstox
- Wisdom Capital
- Zebu
- Zerodha
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.
Core Features
Unified REST API Layer (/api/v1/)
A maintained contract with 57 REST method/path pairs under /api/v1:
- Order Management: Place, modify, cancel orders, basket orders, smart orders with position sizing
- Portfolio: Get positions, holdings, order book, trade book, funds
- Market Data: Real-time quotes, historical data, market depth (Level 5), symbol search
- Advanced: Option Greeks calculator, margin calculator, synthetic futures, auto-split orders
Real-Time WebSocket Streaming
- Unified WebSocket proxy server (port 8765 by default)
- Common WebSocket implementation using ZMQ for normalized data across brokers
- Subscribe to LTP, Quote, or Market Depth for any symbol
- ZeroMQ-based message bus for high-performance data distribution
- Automatic reconnection and failover handling
Flow Visual Strategy Builder (/flow)
Build trading strategies visually without writing code:
- Node-based editor powered by xyflow/React Flow
- Pre-built nodes: Market data, indicators, conditions, order execution, notifications
- Real-time execution with live market data
- Webhook triggers for TradingView and external signals
- Condition nodes with
true/falseandyes/noedge handles,{{var}}interpolation with list indexing - JSON import/export for sharing strategies between traders
- Visual debugging with execution flow highlighting
Options & Strategy Analytics Tools (/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.
API Analyzer Mode
Complete testing environment with ₹1 Crore sandbox capital:
- Test strategies with real market data without risking money
- Pre-deployment testing for strategy validation
- Supports the core MARKET, LIMIT, SL, and SL-M price types
- Realistic margin system with leverage
- Configurable sandbox square-off schedules
- Separate database for complete isolation
Action Center
Order approval workflow for manual control:
- Auto Mode: Immediate order execution (for personal trading)
- Semi-Auto Mode: Manual approval required before broker execution
- Complete audit trail with IST timestamps
- Approve individual orders or bulk approve all
Python Strategy Host (/python)
Host and run your Python strategies directly ins
