Home · Comparisons

yfinance vs AKShare vs OpenBB vs EODHD APIs: which market data source for a quant project?

Published 12 Oct 2026 · repository data refreshes daily

Disclosure: this site is an affiliate partner of EODHD APIs. If you sign up through a link on this page we may earn a commission, at no extra cost to you. The other three tools are free and we have no relationship with them.

Short answer. These four are not interchangeable. yfinance and AKShare are free libraries that read public websites, with no guarantee they keep working. OpenBB is a layer that connects data providers you already have. EODHD APIs is a commercial service you pay for once free sources stop being enough. For personal research on US stocks, yfinance is usually all you need.

The same facts, as the English edition of the Chinese guide, are on how to choose among yfinance, AKShare, OpenBB, and EODHD APIs. The Chinese page is the Chinese data-source guide. This comparison is not that language pair.

Side by side

ToolGitHub starsLast activityLicenceWhat it isCoversCost
yfinance26.1k30 Nov 2026Apache-2.0Free library over Yahoo Finance's public endpointsTickers listed on Yahoo FinanceFree; Yahoo's terms say personal use
akshare23.5k25 Nov 2026MITFree library aggregating public data sitesChinese markets and macro data firstFree; stated as for academic research
OpenBB76k29 Nov 2026Apache-2.0Open-source layer that connects many data providersWhatever the providers you connect coverFree software; some providers charge
EODHD APIs——Commercial serviceHosted data APIGlobal exchanges: prices, fundamentals, newsFree plan: 20 API calls a day, one year of history. Paid personal plans; separate commercial plans

Stars and last activity (the most recent push GitHub reports for the repository) come from our daily snapshots and can lag by a few days. Licence and scope were checked against each repository on 12 Oct 2026.

yfinance: the fastest way to start

yfinance downloads data from Yahoo Finance's publicly available endpoints. It gives you historical prices for one or many tickers, live streaming over WebSocket, sector and industry information, and a screener. A few lines of Python get you a price history in a pandas DataFrame.

The catch is in the project's own README: Yahoo's finance API is intended for personal use only, and you are told to check Yahoo's terms for your rights to the data. Because the library depends on endpoints it does not control, it can break when Yahoo changes something. That is fine for a notebook and a risk for anything that has to run every day.

AKShare: the default for Chinese markets

AKShare collects data from public Chinese financial sites such as Eastmoney and Sina behind simple Python functions, and offers an HTTP API (AKTools) for other languages. If you work on A-shares or Chinese macro data, it is the natural first stop.

Its README is equally direct about the limits: the data is for academic research, it is reference only, and some interfaces may be removed because of factors outside the project's control. The documentation is mainly in Chinese.

The other library people use for the same market is Tushare Pro: an account, a token, and access by points. Which to pick, what the free tier can call, and the published prices are in how to choose between Tushare and AKShare. The same article in Chinese is Tushare and AKShare (Chinese). That guide is not a language version of this page.

A walkthrough that loads AKShare daily bars into a local SQLite file is AKShare into SQLite. The same walkthrough in Chinese is AKShare daily database (Chinese). That guide is not a language version of this page.

OpenBB: a connector, not a data source

OpenBB's open-source platform describes itself as a "connect once, consume everywhere" layer. You plug in proprietary, licensed and public data sources, and the same connections serve Python, a REST API, Excel and AI agents through MCP servers. It is released under Apache 2.0.

It does not create data. What you can pull depends on the providers you connect, and several of those need their own API keys or subscriptions. It earns its place when you already juggle more than one provider. The analyst interface, OpenBB Workspace, is a separate enterprise product.

EODHD APIs: paying for coverage and a contract

EODHD APIs is a hosted service rather than a library. One API covers end-of-day and intraday prices, fundamentals, dividends and splits, news and more across global exchanges, over REST and WebSocket. You are a customer of a company whose business is providing that data, which is the real difference from the two scraping libraries above.

Be clear about the free plan: it allows 20 API calls a day, and history on it is limited to the past year, for prices as well as dividends and splits. That is enough to check that your code works, not to run a strategy. Plans are split by what you need (end-of-day only, intraday, fundamentals, or everything), so check the current pricing before you design around it. A walkthrough that appends those daily bars to an existing A-share SQLite table is EODHD on the same SQLite table. The same walkthrough in Chinese is EODHD for overseas data. That guide is not a language version of this page.

How to choose

A sensible path is to prove an idea on free data first and move to a paid source only when reliability or coverage becomes the bottleneck. Keep the download step separate from the rest of your code so that switching sources later is a small change.

Frequently asked questions

Are yfinance, AKShare, OpenBB, and EODHD interchangeable?

No. yfinance and AKShare are free libraries that read public websites, with no guarantee they keep working. OpenBB is a layer that connects data providers you already have, and it does not create data. EODHD APIs is a commercial service you pay for once free sources stop being enough.

Which one for personal research on US stocks?

yfinance. A few lines of Python return a price history. Yahoo's finance API is intended for personal use, and the library can break when Yahoo changes an endpoint. That is fine for a notebook and a risk for anything that has to run every day.

Which one for Chinese markets?

AKShare. It collects data from public Chinese sites such as Eastmoney and Sina. Its README says the data is for academic research and is reference only, and some interfaces may be removed. Tushare Pro is a different comparison, not this page.

What does the EODHD free plan include?

20 API calls a day, and history limited to the past year, for prices as well as dividends and splits. That is enough to check that your code works, not to run a strategy. Standard plans are for personal use. Commercial use needs one of the separate Commercial plans.

Does OpenBB produce market data?

No. It is an Apache-2.0 connector. What you can pull depends on the providers you connect, and several of those need their own API keys or subscriptions. The analyst interface, OpenBB Workspace, is a separate enterprise product.

Nothing on this page is investment advice. Data from any of these sources can be wrong or delayed; check it before you rely on it.