# Open-source stock market tools

What each licence actually allows — MIT, Apache, AGPL, GPL — and why open-source code almost never comes with open data.

*https://stockmarketstack.com/collections/open-source*

## Open source solves the software, not the data

Every tool on this page ships source you can read, fork and run. None of them ships the market
data, and that is the constraint that shapes the whole list.

Exactly one market-data API in the catalogue is open source — [yfinance](https://stockmarketstack.com/tools/yfinance) — and
it is a client, not a source: it reads endpoints Yahoo publishes for its own website. The code is
Apache-2.0; the numbers that come back carry no licence to redistribute at all, which its own
maintainer says plainly. Everywhere else the pattern holds: the engine is open, the feed is
bought.

## The licence is the field to read first

**MIT, Apache-2.0, BSD** — do what you like, keep the notice. That is 41 of the 54 open-source
cards on 8 October 2026 — 19 MIT, 16 Apache-2.0, six BSD or NCSA. Most of the agent
and MCP layer sits here, along with [Lightweight Charts](https://stockmarketstack.com/tools/lightweight-charts) and
[Plotly.js](https://stockmarketstack.com/tools/plotly-js).

**AGPL-3.0** — the condition triggers on network use. Run a modified copy as a service other
people reach and you owe them the source. Six cards carry it, [Ghostfolio](https://stockmarketstack.com/tools/ghostfolio),
[SEC EDGAR MCP](https://stockmarketstack.com/tools/sec-edgar-mcp) and [Backtesting.py](https://stockmarketstack.com/tools/backtesting-py) among them;
[OpenBB](https://stockmarketstack.com/tools/openbb) left it for Apache-2.0 with its V5 release in September 2026. Running
one for yourself or your household never trips it; building a product on top of one is the case
to check.

**GPL-3.0, LGPL-3.0** — [Backtrader](https://stockmarketstack.com/tools/backtrader) and [Lumibot](https://stockmarketstack.com/tools/lumibot) are GPL,
which reaches into anything you link them with. [NautilusTrader](https://stockmarketstack.com/tools/nautilus-trader) is LGPL,
which does not, provided you link rather than modify.

**Split licences** wear the label without covering the whole product.
[TimescaleDB](https://stockmarketstack.com/tools/timescaledb) is Apache-2.0 at the core, but compression, continuous
aggregates, retention policies and gapfill are under the source-available Timescale License —
which is to say the features you would install it for. [InfluxDB 3](https://stockmarketstack.com/tools/influxdb) is MIT or
Apache-2.0 for Core only; Enterprise is commercial and its source is not public.

## Where the open tools cluster

Four categories are mostly open source: [analysis libraries](https://stockmarketstack.com/categories/analysis-libraries),
12 of 13 cards; [financial MCP servers](https://stockmarketstack.com/categories/mcp-servers), 3 of 3;
[AI research agents and copilots](https://stockmarketstack.com/categories/ai-agents), 4 of 6; and
[backtesting frameworks](https://stockmarketstack.com/categories/backtesting-frameworks), 15 of 24. In each the product *is*
the code.

[Charting platforms and screeners](https://stockmarketstack.com/categories/charting-screeners) and
[news and sentiment APIs](https://stockmarketstack.com/categories/news-sentiment-apis) have no open-source card at all;
[fundamental research](https://stockmarketstack.com/categories/fundamentals-research) has one and
[market data APIs](https://stockmarketstack.com/categories/market-data-apis) two, and each of those is open code over somebody
else's prices. There the product is a licence to show you the numbers, and a licence cannot be
forked.

The interesting middle is [charting libraries](https://stockmarketstack.com/categories/charting-libraries), four open and five
proprietary, and [portfolio trackers](https://stockmarketstack.com/categories/portfolio-trackers), where three open trackers
exist because the job — what you hold and what it is worth — is one you may not want on a
vendor's server at all.

## Cards

### Backtesting Frameworks & Algo Trading Libraries (15)

- [Backtesting.py](https://stockmarketstack.com/tools/backtesting-py.md) — A single-instrument Python backtester — one OHLC series, one strategy, no live trading.
- [Backtrader](https://stockmarketstack.com/tools/backtrader.md) — An event-driven Python backtester with 122 indicators, frozen since April 2023.
- [bt](https://stockmarketstack.com/tools/bt.md) — Python backtesting for allocation and rebalancing rules, not entries and exits.
- [fastquant](https://stockmarketstack.com/tools/fastquant.md) — A one-call wrapper over Backtrader, dormant since 2023 and broken on PyPI.
- [FinGPT](https://stockmarketstack.com/tools/fingpt.md) — Financial LLM adapters, instruction datasets and training notebooks, all MIT.
- [FinRL](https://stockmarketstack.com/tools/finrl.md) — Gym-style market environments and deep-RL agents for trading research, MIT-licensed.
- [FinRL-X](https://stockmarketstack.com/tools/finrl-x.md) — FinRL's successor, carrying one portfolio-weight vector from stock selection to Alpaca.
- [ib_async](https://stockmarketstack.com/tools/ib-async.md) — The community continuation of ib_insync — same API, new maintainers, TWS still required.
- [Kronos](https://stockmarketstack.com/tools/kronos.md) — Open-weights transformer pre-trained on OHLCV bars. The training corpus is not released.
- [LEAN](https://stockmarketstack.com/tools/lean.md) — QuantConnect's engine without the cloud — your server, your data, your broker login.
- [Lumibot](https://stockmarketstack.com/tools/lumibot.md) — One strategy class for backtest and live, plus a built-in LLM agent runtime.
- [NautilusTrader](https://stockmarketstack.com/tools/nautilus-trader.md) — Rust core, Python API, one strategy that backtests and trades live unchanged.
- [Qlib](https://stockmarketstack.com/tools/qlib.md) — Microsoft's ML factor-research pipeline. The data its CLI downloads stops in late 2020.
- [QSTrader](https://stockmarketstack.com/tools/qstrader.md) — An institutional-shaped Python backtester whose last commit to master was June 2024.
- [Zipline-reloaded](https://stockmarketstack.com/tools/zipline-reloaded.md) — The maintained fork of Quantopian's Zipline. Bring your own data — it ships almost none.

### Market Analysis & Portfolio Optimization Libraries (12)

- [arch](https://stockmarketstack.com/tools/arch.md) — GARCH and the rest of the volatility-model family, plus the tests you need around them.
- [empyrical-reloaded](https://stockmarketstack.com/tools/empyrical-reloaded.md) — The maintained fork of Quantopian's empyrical — risk statistics, no plots.
- [exchange_calendars](https://stockmarketstack.com/tools/exchange-calendars.md) — Sessions, minutes and holidays for 69 exchanges, keyed by ISO-10383 code.
- [ffn](https://stockmarketstack.com/tools/ffn.md) — Performance stats, drawdowns and portfolio weights from a DataFrame of prices.
- [pandas_market_calendars](https://stockmarketstack.com/tools/pandas-market-calendars.md) — Exchange schedules as pandas DataFrames, with CME, CBOE options and bond-market calendars.
- [pandas-ta](https://stockmarketstack.com/tools/pandas-ta.md) — The DataFrame indicator library whose repo is gone and whose last release is a year old.
- [PyPortfolioOpt](https://stockmarketstack.com/tools/pyportfolioopt.md) — Prices in, weights out — efficient frontier, Black-Litterman and HRP.
- [QuantLib](https://stockmarketstack.com/tools/quantlib.md) — The open-source derivatives pricing library banks actually use, reachable from Python.
- [QuantStats](https://stockmarketstack.com/tools/quantstats.md) — HTML tearsheets and about eighty risk metrics from one pandas series of returns.
- [Riskfolio-Lib](https://stockmarketstack.com/tools/riskfolio-lib.md) — Twenty-six convex risk measures, four objectives, one cvxpy-backed optimiser.
- [skfolio](https://stockmarketstack.com/tools/skfolio.md) — Portfolio optimisation as scikit-learn estimators — fit, predict, cross-validate.
- [TA-Lib](https://stockmarketstack.com/tools/ta-lib.md) — The C indicator library everything else wraps — and pip now ships the C part with it.

### Tick Data Storage & Time-Series Databases (6)

- [Apache Druid](https://stockmarketstack.com/tools/druid.md) — Real-time OLAP cluster built for high-concurrency dashboards, not for research joins.
- [ClickHouse](https://stockmarketstack.com/tools/clickhouse.md) — Columnar OLAP database that keeps years of ticks on disk cheaply and scans them fast.
- [DuckDB](https://stockmarketstack.com/tools/duckdb.md) — In-process analytical SQL over Parquet tick files, with no server to run.
- [InfluxDB 3](https://stockmarketstack.com/tools/influxdb.md) — Line-protocol time-series database rewritten on Arrow, DataFusion and Parquet.
- [QuestDB](https://stockmarketstack.com/tools/questdb.md) — Open-source time-series SQL built for tick data — ASOF JOIN, SAMPLE BY, LATEST ON.
- [TimescaleDB](https://stockmarketstack.com/tools/timescaledb.md) — Hypertables, columnar compression and continuous aggregates bolted onto plain Postgres.

### JavaScript Charting Libraries for Finance (4)

- [Apache ECharts](https://stockmarketstack.com/tools/echarts.md) — Apache-2.0 general-purpose charting with a candlestick series and nothing else financial.
- [KLineChart](https://stockmarketstack.com/tools/klinechart.md) — Apache-2.0 canvas candlesticks with 27 indicators built in and zero dependencies.
- [Lightweight Charts](https://stockmarketstack.com/tools/lightweight-charts.md) — The chart and nothing else — six series types on canvas, attribution required.
- [Plotly.js](https://stockmarketstack.com/tools/plotly-js.md) — Candlestick and OHLC traces in an MIT library the notebook already has installed.

### AI Research Agents & Copilots (4)

- [AI Hedge Fund](https://stockmarketstack.com/tools/ai-hedge-fund.md) — LLM investor personas score a ticker, deterministic code sizes the book, nothing trades.
- [FinRobot](https://stockmarketstack.com/tools/finrobot.md) — Open-source agents that turn a ticker and your own API keys into an analyst report.
- [TradingAgents](https://stockmarketstack.com/tools/tradingagents.md) — Analyst, bull, bear, risk and portfolio-manager agents argue over one ticker.
- [Vibe-Trading](https://stockmarketstack.com/tools/vibe-trading.md) — A local finance research agent with 74 MCP tools, nine backtest engines and 14 brokers.

### Stock Portfolio Trackers (3)

- [Ghostfolio](https://stockmarketstack.com/tools/ghostfolio.md) — Self-hosted open source portfolio tracking, or a hosted account for USD 48 a year.
- [Portfolio Performance](https://stockmarketstack.com/tools/portfolio-performance.md) — Free open-source desktop tracker that reads your bank's PDF statements.
- [Wealthfolio](https://stockmarketstack.com/tools/wealthfolio.md) — Local-first portfolio and net-worth tracker for desktop, mobile and your own Docker host.

### Financial MCP Servers (3)

- [MaverickMCP](https://stockmarketstack.com/tools/maverick-mcp.md) — Thirty-seven stock-analysis tools for any MCP client, on Yahoo data and no key.
- [SEC EDGAR MCP](https://stockmarketstack.com/tools/sec-edgar-mcp.md) — SEC filings and XBRL financials as MCP tools, under AGPL or a paid commercial licence.
- [tradingview-mcp](https://stockmarketstack.com/tools/tradingview-mcp.md) — Screeners, technical analysis and backtests for any MCP client. No TradingView account.

### Stock Market Data APIs (2)

- [OpenBB](https://stockmarketstack.com/tools/openbb.md) — One Python API, REST app and MCP server over 17 public and exchange data sources.
- [yfinance](https://stockmarketstack.com/tools/yfinance.md) — The Python library everyone starts with — free, unofficial, and not something to build on.

### Trading Journal Software (1)

- [TradeNote](https://stockmarketstack.com/tools/tradenote.md) — The open-source trade journal you run in Docker, or rent hosted for $4.99 a month.

### Fundamental Data & Stock Research Platforms (1)

- [Equibles](https://stockmarketstack.com/tools/equibles.md) — Financial research by browser, REST API and hosted MCP, with an AGPL self-hosted core

### Insider, 13F & Congressional Trade Trackers (1)

- [13F.info](https://stockmarketstack.com/tools/13f-info.md) — Every 13F since 2014, free and account-free, from a Rails app you can run yourself.

### Retirement & Portfolio Planning Calculators (1)

- [Open Social Security](https://stockmarketstack.com/tools/open-social-security.md) — Free, MIT-licensed claiming calculator — every claiming month, priced by present value.

### Macro & Economic Data APIs (1)

- [DBnomics](https://stockmarketstack.com/tools/dbnomics.md) — Macro series from 93 statistics offices and central banks behind one open API.

## FAQ

### Does open source mean free?

The software, yes. The data, almost never. QuantConnect publishes its [LEAN](/tools/lean) engine under Apache-2.0 and charges a subscription for the hosted platform and the data that runs on it; Ghostfolio is AGPL and still needs a market-data provider behind it — Yahoo Finance and CoinGecko among the supported sources, which cost nothing, and a Premium key for its professional provider. Read the licence for what you may do with the code and the provider's terms for what you may do with the numbers — they are two different questions with two different answers.

### Can I use AGPL code inside a commercial product?

You can sell it, and you can modify it. What the AGPL adds over the GPL is that running a modified copy as a network service counts as distribution, so the people using that service can ask you for the source. For a desktop app, a personal server or internal use that condition never fires. For a SaaS product built on someone else's AGPL code it is the clause to take to a lawyer before you write the first line.

### What is the difference between open source and self-hosted?

Open source is about the licence on the code; self-hosted is about where the process runs. Every open-source tool in the catalogue can also be self-hosted, but the reverse fails for 13 cards. Four are tick databases (kdb+, OneTick, DolphinDB and ArcticDB), five are proprietary charting libraries, Highcharts Stock and SciChart.js among them, and four are backtesters — QuantRocket, VectorBT PRO, and VectorBT and PyBroker under the Commons Clause.

### Which parts of the market are actually open source?

The parts where the value is in the code rather than in a licence to redistribute somebody else's prices. Analysis libraries, the MCP-and-agent layer and most backtesting frameworks are open source; charting platforms, screeners, news APIs and data vendors are almost entirely not. That split is not about culture — a screener's product is the feed it is licensed to show you, and a feed cannot be forked.
