openalgo is a free, open source compliance & risk management project written in Python and released under AGPL-3.0. It has 2,680 GitHub stars, 1,252 forks and 307 open issues, and was last pushed 39 hours ago. On this registry it ranks #26 of 45 tracked projects in Compliance & Risk Management, with 5 head-to-head comparisons available. It gained 13 stars over the last 3 tracked days.

What is openalgo?

What it is

OpenAlgo is self-hosted open source algorithmic trading platform. It lives in algorithmic trading ecosystem. It gives traders full-stack Python Flask plus React 19 environment to design, host, execute strategies through 36 broker plugins: 35 securities integrations plus Delta Exchange crypto derivatives. It is not only broker bridge or API layer. It combines multiple trading surfaces in one instance. Those surfaces share active broker session, market-data infrastructure, six operational data stores.

Broker fragmentation is concrete problem. Strategy code ties to one adapter. Traders need common interface for Python code, no-code flows, API signals, options tools, AI chat. OpenAlgo solves this by self-hosted common interface across many broker plugins.

Key capabilities

  • Unified Broker API at /api/v1/ gives one contract across 36 broker plugins for TradingView, Amibroker, ChartInk, Excel, Google Sheets, Python, Java, Go, .NET, Node.js, MetaTrader, GoCharting, N8N. Optional operations vary by adapter.
  • Python Strategy Host at /python runs pasted scripts in in-browser CodeMirror editor, schedules IST start/stop times, runs parallel isolated processes, shows real-time logs without external server, Docker, cron.
  • Flow at /flow builds no-code strategies with drag-and-drop nodes for market data, indicators, conditions, order execution, notifications, plus TradingView and external webhook triggers and JSON import/export.
  • AI Agent at /agent reads connected market data, draws charts and payoff diagrams, computes indicators, marks up /trading chart, and places orders only after explicit approval for each order. It supports LiteLLM, ChatGPT Plus or Pro, or local Ollama.
  • Options Trading Suite at /tools includes twelve tools, including Strategy Builder with payoff diagrams and live Greeks, Option Chain, IV Smile, Max Pain, Vol Surface, GEX dashboard, OI Tracker, OI Profile, Straddle Chart, Straddle PnL simulator, Option Greeks history, streaming from connected broker.

Who uses it and how

  • Individual traders self-host one OpenAlgo instance, connect supported broker plugin, use shared broker session and market-data infrastructure across surfaces.
  • Python traders paste scripts into hosted editor, schedule with IST start/stop times, run parallel isolated processes, monitor real-time logs.
  • Non-code traders build Flow strategies with nodes and webhook triggers from TradingView or external signals, then share through JSON import/export.
  • Options traders use /tools to inspect option chain, IV smile, max pain, volatility surface, GEX, open interest, straddle charts, payoff diagrams, Greeks from connected broker.

Getting started

Deployment is self-hosted on Python 3.12 or newer, following Installation Guide at docs.openalgo.in.

When to use it — and when not to

Use it when you want self-hosted algorithmic trading platform with common interface across many broker plugins and multiple strategy surfaces. Do not use it when you want hosted service or uniform features across all adapters, because optional operations vary by adapter and self-hosting is required. Self-hoster must run Python Flask plus React 19 instance and operate six operational data stores, broker session, market-data infrastructure; 307 open issues signal ongoing maintenance burden.

project readme (upstream, from github) — read inline

OpenAlgo - Open Source Algorithmic Trading Platform

PyPI Downloads PyPI Downloads X (formerly Twitter) Follow YouTube: Subscribe Discord

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

What is OpenAlgo

Quick Links

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/false and yes/no edge 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

API Analyzer Documentation

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

Action Center Documentation

Python Strategy Host (/python)

Host and run your Python strategies directly ins

readme truncated — read the full docs on github

Frequently asked questions

Is openalgo free to use?

openalgo is open source under the AGPL-3.0 licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does openalgo do?

Open Source Algo Trading Platform for Everyone

What is openalgo written in?

openalgo is primarily written in Python. Its source is publicly available at https://github.com/marketcalls/openalgo, and it has 2,680 GitHub stars.