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.

Last updated

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 — 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 and 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, SEC EDGAR MCP and Backtesting.py among them; 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 and Lumibot are GPL, which reaches into anything you link them with. NautilusTrader is LGPL, which does not, provided you link rather than modify.

Split licences wear the label without covering the whole product. 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 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, 12 of 13 cards; financial MCP servers, 3 of 3; AI research agents and copilots, 4 of 6; and backtesting frameworks, 15 of 24. In each the product is the code.

Charting platforms and screeners and news and sentiment APIs have no open-source card at all; fundamental research has one and 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, four open and five proprietary, and 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.

All 54 of them

Showing 54 of 54

Sort by

Backtesting Frameworks & Algo Trading Libraries15

Market Analysis & Portfolio Optimization Libraries12

Tick Data Storage & Time-Series Databases6

JavaScript Charting Libraries for Finance4

AI Research Agents & Copilots4

Stock Portfolio Trackers3

Financial MCP Servers3

Stock Market Data APIs2

Trading Journal Software1

Fundamental Data & Stock Research Platforms1

Insider, 13F & Congressional Trade Trackers1

Retirement & Portfolio Planning Calculators1

Macro & Economic Data APIs1

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.