Backtesting.py: pricing, API and features
Open-source Python library for backtesting trading strategies on historical candlestick data, with an optimizer and interactive plots; works with any instrument incl. crypto.
Visit Backtesting.py ↗ Plain link, no affiliate. Category: Trading bots & backtesting.
At a glance: Backtesting.py (Backtesting.py (open-source project, kernc)) — pricing: open-source; free tier: Yes; REST: No; MCP: unknown; open source: Yes.
Pricing
- Model
- open-source
- Free tier
- Yes — Free software installed with pip; self-run.
- Plans
- unknown
- Notes
- Repo lists GitHub Sponsors for donations.
Verified on 2026-10-30 · Source: https://github.com/kernc/backtesting.py
Access & auth
- Authentication
- none
- KYC required
- No
- Notes
- Local Python library; no account or API key. User supplies their own OHLCV data.
Verified on 2026-10-30 · Source: https://github.com/kernc/backtesting.py
Coverage
- Exchanges
- No exchange connectivity; runs on user-supplied historical candlestick data
- Chains
- unknown
- Assets
- Any instrument with historical candlestick data (forex, crypto, stocks, futures)
Verified on 2026-10-30 · Source: https://kernc.github.io/backtesting.py/
Capabilities
- Capabilities
- backtesting, charting
Verified on 2026-10-30 · Source: https://kernc.github.io/backtesting.py/
Interfaces
- REST API
- No
- WebSocket
- No
- SDKs
- python
- Official MCP server
- unknown
- Other
- Python library (pip install backtesting); built-in SAMBO optimizer; interactive Bokeh plots
Verified on 2026-10-30 · Source: https://github.com/kernc/backtesting.py
Open source & self-hosting
- Open source
- Yes
- Licence
- AGPL-3.0
- Self-host
- Yes
- Repository
- https://github.com/kernc/backtesting.py
Verified on 2026-10-30 · Source: https://raw.githubusercontent.com/kernc/backtesting.py/master/LICENSE.md
FAQ
Does Backtesting.py have a free tier?
Yes. Free software installed with pip; self-run. (verified 2026-10-30)
Does Backtesting.py offer an API?
REST: No. WebSocket: No. Official MCP server: unknown. Verified 2026-10-30.
Is Backtesting.py open source or self-hostable?
Open source: Yes; licence: AGPL-3.0; self-host: Yes. Verified 2026-10-30.
What are alternatives to Backtesting.py?
Other trading bots & backtesting in our directory: 3Commas, ADAMANT TradeBot, AI Hedge Fund Crypto, Alertatron, Algobot.
Related trading bots & backtesting
3Commas
Hosted crypto trading automation platform with DCA, grid and signal bots, a demo account and webhook/Pine Script execution.
ADAMANT TradeBot
Self-hosted market-making software for token issuers: keeps order-book depth and spreads on selected centralized exchanges using your own exchange account.
AI Hedge Fund Crypto
Python framework that runs a graph of technical-analysis strategy nodes plus an LLM portfolio step for crypto trading decisions, with multi-timeframe backtesting.
Alertatron
Cloud service that executes orders on crypto exchanges from TradingView or other webhook alerts, with order chaining, trading groups and chart captures sent to Telegram or Discord.
Algobot
Python desktop bot for crypto: create strategies, then backtest, optimize, simulate or run live, with Telegram control.
algotrading (ivopetiz)
Python framework for crypto trading bots: realtime, tick-by-tick and backtest modes, stop-loss helpers, exchange API, database or CSV data sources.
See Backtesting.py alternatives →