Openalgo
Open Source Algo Trading Platform for Everyone
Install / Use
npx skills add marketcalls/openalgoInstalls into whichever agent you are using.
README
OpenAlgo - Open Source Algorithmic Trading Platform
<div align="center"> </div>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 34 broker plugins: 33 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.
Four 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 34 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. |
| 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 (35 plugins)
<details> <summary>View All Supported Brokers</summary>- 5paisa (Standard + XTS)
- AliceBlue
- AngelOne
- Arrow
- Compositedge
- Definedge
- Delta Exchange
- Dhan (Live + Sandbox)
- Firstock
- Flattrade
- Fyers
- Groww
- 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 inside OpenAlgo, with no separate VM, no cron, no Docker:
- Built-in code editor powered by CodeMirror with Python syntax highlighting and themes
- Run multiple strategies in parallel with full process isolation
- Automated IST-based scheduling with start/stop times and per-day-of-week control
- Secure environment variable management with Fernet encryption
- Real-time logs streamed to the browser; state persists across restarts
- Built-in
Python Strategy Guidepage walks first-time users from an empty editor to a scheduled, running strategy
ChartInk Integration
Direct webhook integration for scanner alerts:
- Supports BUY, SELL, SHORT, COVER actions
- Intraday with auto square-off and positional strategies
- Bulk symbol configuration via CSV
- Real-time strategy monitoring
AI-Powered Trading (MCP Server)
Connect AI assistants for natural language trading:
- Compatible with Claude Desktop, Cursor, Windsurf, ChatGPT
- Execute trades using natural language commands
- Full trading capabilities: orders, positions, market data
- Local and secure integration with your OpenAlgo instance
Telegram Bot Integration
Real-time notifications and command execution:
- Automatic order and trade alerts delivered to Telegram
- Get orderbook, positions, holdings, funds on demand
- Generate intraday and daily charts
- Interactive button-based menu
- Receive strategy alerts directly to Telegram
Related Skills
python-debugpy
385.5kDebug Python with pdb, breakpoint(), post-mortem inspection, and debugpy remote attach.
skill-creator
385.5kCreate, edit, audit, tidy, validate, or restructure AgentSkills and SKILL.md files.
claude-opus-4-5-migration
140.6kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
automl-hyperparameter-optimization
40.5kAutoML and hyperparameter optimization rules for Python ML projects using Ray Tune, Optuna, PyCaret, and time-series AutoML libraries

