项目 / JerBouma/FinanceDatabase
This is a database of 300.000+ symbols containing Equities, ETFs, Funds, Indices, Currencies, Cryptocurrencies and Money Markets.
本站整理,非 GitHub 官方 description。
官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。
以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。
安装后用 import financedatabase as fd 并以 fd.Equities() 等入口获取资产类别数据,无需 API key,数据下载一次后本地缓存。
各类资产首次下载后会缓存在本地。也可通过 [MCP 服务](https://www.jeroenbouma.com/projects/financedatabase/mcp)在兼容客户端中查询,托管地址为 `https://financedatabase.jeroenbouma.com/mcp`,本地可用 `uvx --from "financedatabase[mcp]" financedatabase-mcp-setup` 配置。筛选得到的代码可继续交给 Finance Toolkit 做分析。
来自 GitHub 仓库 README / 主页介绍正文,正文较长,已截断:保留前 20000 字符(原始 38,701 字节),完整内容见 GitHub 仓库。
<!-- mcp-name: io.github.JerBouma/financedatabase -->
[](https://github.com/JerBouma/FinanceDatabase)
[](https://github.com/sponsors/JerBouma)
[](https://www.buymeacoffee.com/jerbouma)
[](https://www.linkedin.com/in/boumajeroen/)
[](https://www.jeroenbouma.com/projects/financedatabase/mcp)
[](https://github.com/JerBouma/FinanceDatabase/releases/latest/download/financedatabase.mcpb)
[](https://www.jeroenbouma.com/projects/financedatabase)
[](https://www.jeroenbouma.com/projects/financedatabase/explorer)
[](https://pypi.org/project/financedatabase/)
[](https://pypi.org/project/financedatabase/)
[](https://pepy.tech/project/financedatabase)
As a private investor, the sheer amount of information that can be found on the internet is rather daunting. Trying to understand what types of companies or ETFs are available is incredibly challenging, with millions of companies and derivatives available on the market. Sure, the most traded companies and ETFs can quickly be found simply because they are known to the public (for example, Microsoft, Tesla, S&P 500 ETF, or an All-World ETF). However, what else is out there is often unknown.
**This is why I created the FinanceDatabase**, a database featuring 300,000+ symbols containing Equities, ETFs, Funds, Indices, Currencies, Cryptocurrencies and Money Markets. It allows you to obtain a broad overview of sectors, industries, types of investments and much more, entirely for free. Everything is stored in CSV files that anyone can read and edit, so the database grows and improves through the community.
The aim of this database is explicitly _not_ to provide up-to-date fundamentals or stock data, as those can be obtained with ease (with the help of this database) by using the [Finance Toolkit 🛠️](https://github.com/JerBouma/FinanceToolkit). Instead, it gives insights into the products that exist in each country, industry and sector and provides the most essential information about each product. With this information, you can analyze specific areas of the financial world and/or find a product that is hard to find. By utilising both, it is possible to do a fully-fledged competitive analysis with the tickers found from the FinanceDatabase inputted into the FinanceToolkit.
Some key statistics of the database:
<!-- STATISTICS:START (generated weekly by scripts/update_readme_stats.py from database/; edits between these markers are overwritten) -->
| | Asset class | Symbols | Exchanges | Coverage |
| :-: | :-- | --: | --: | :-- |
| 🏢 | **Equities** | 121,621 | 87 | 11 sectors · 75 industries · 118 countries |
| 📦 | **ETFs** | 32,232 | 63 | 637 issuers · 32 categories |
| 💼 | **Funds** | 57,761 | 29 | 1,534 fund families · 70 categories |
| 📈 | **Indices** | 82,401 | 64 | 42 categories |
| 💱 | **Currencies** | 2,516 | – | 177 currencies |
| 🪙 | **Cryptocurrencies** | 5,929 | – | 692 coins · 12 quote currencies |
| 🏦 | **Money Markets** | 1,225 | 4 | 131 fund families |
| | **Total** | **303,685** | | |
<!-- STATISTICS:END -->
___
**🔌 The Finance Database is also available as an [MCP Server](https://www.jeroenbouma.com/projects/financedatabase/mcp)**
Explore all 300,000+ symbols from Claude, Copilot, Cursor, Windsurf or any MCP-compatible client without writing code. No API key needed.
- **Hosted:** connect to `https://financedatabase.jeroenbouma.com/mcp` — nothing to install and no API key.
- **Local:** `uvx --from "financedatabase[mcp]" financedatabase-mcp-setup` — sets up your client config automatically. See [MCP Server Documentation](https://www.jeroenbouma.com/projects/financedatabase/mcp#local-clients) for manual setup.
___
# Table of Contents
1. [Installation](#installation)
2. [Functionality](#functionality)
3. [MCP Server](#mcp-server)
4. [Questions & Answers](#questions--answers)
5. [Contributing](#contributing)
6. [Contact](#contact)
# Installation
Before installation, consider starring the project on GitHub which helps others find the project as well.
<a href="https://github.com/JerBouma/FinanceDatabase" target="_blank"><img width="1353" alt="image" src="https://github.com/JerBouma/FinanceDatabase/assets/46355364/4132edde-72f9-4e32-adfe-8872207f46ff"></a>
To install the FinanceDatabase it simply requires the following:
```
pip install financedatabase -U
```
Then within Python use:
```python
import financedatabase as fd
equities = fd.Equities()
```
No API key is needed. Each asset class is downloaded once and cached locally, see [Questions & Answers](#questions--answers) for how the cache works.
# Functionality
This section is an introduction to the FinanceDatabase. Search and filter the database in your browser, and copy any selection as Python code, with the Database Explorer.
___
<b><div align="center">Open the Database Explorer <a href="https://www.jeroenbouma.com/projects/financedatabase/explorer">here</a>.</div></b>
___
A basic example of how to use the FinanceDatabase is shown below. Every code snippet in the sections that follow builds on this same `equities` instance. Initialization of each asset class is only required <u>once</u>, so save it to a variable to query the database much more quickly.
```python
import financedatabase as fd
# Initialize the Equities database
equities = fd.Equities()
# Select all equities
equities.select()
```
A portion of the output is shown below. The tables in this section are cut off to five entries and a selection of the columns due to the sheer size of the database.
| symbol | name | currency | sector | industry | exchange | market | country | market_cap | isin |
|:---------|:-------------------------|:-----------|:-----------------------|:-------------------------------------------|:-----------|:---------------------|:--------------|:-------------|:-------------|
| AAPL | Apple Inc. | USD | Information Technology | Computers & Hardware | NMS | NASDAQ Global Select | United States | Mega Cap | US0378331005 |
| ASML.AS | ASML Holding N.V. | EUR | Information Technology | Semiconductors & Chip Equipment | AMS | Euronext Amsterdam | Netherlands | Mega Cap | NL0010273215 |
| 7203.T | Toyota Motor Corporation | JPY | Consumer Discretionary | Automobiles | JPX | Tokyo Stock Exchange | Japan | Mega Cap | JP3633400001 |
| NESN.SW | Nestle S.A. | CHF | Consumer Staples | Food Products | EBS | SIX Swiss Exchange | Switzerland | Mega Cap | CH0038863350 |
| SAP.DE | SAP SE | EUR | Information Technology | Software | GER | XETRA | Germany | Mega Cap | DE0007164600 |
And below the actively listed equities are counted per sector.
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/JerBouma/FinanceDatabase/main/assets/readme/sectors-dark.png">
<img alt="Sectors" src="https://raw.githubusercontent.com/JerBouma/FinanceDatabase/main/assets/readme/sectors-light.png">
</picture>
Each asset class has the same three functions: `select` to filter on the database's categories, `search` to look for any text in any column and `show_options` to see which values a category can take. The asset classes are `fd.Equities()`, `fd.ETFs()`, `fd.Indices()`, `fd.Currencies()` and `fd.Cryptos()`, which are updated weekly from official exchange and market sources.
Three capabilities cut across all of them:
- **Lists of values.** Every filter accepts a single value or a list, e.g. `country=['Netherlands', 'Belgium']`, returning the entries that match any of them.
- **`only_primary_listing` and `exclude_delisted`.** A company is often listed on many exchanges. `only_primary_listing=True` keeps only its primary listing, and delisted symbols are left out by default (`exclude_delisted=False` to include them).
- **pandas or Polars.** Queries run lazily with [Polars](https://pola.rs/) and return a pandas DataFrame by default, or a Polars DataFrame with `as_pandas=False`.
### Exploring the Options
With `show_options`, all possible options are given per column. **This is useful as it doesn't require loading the larger data files.**
```python
# Show the options of every column of the equities
options = fd.show_options("equities")
# Select the sectors
options["sector"]
```
This returns the eleven sectors used for equities:
```text
['Communication Services', 'Consumer Discretionary', 'Consumer Staples',
'Energy', 'Financials', 'Health Care', 'Industrials',
'Information Technology', 'Materials', 'Real Estate', 'Utilities']
```
Once an asset class is loaded, `show_options` is also available on the class itself, where it shows the options that remain after filtering. For example, the industries of the financial companies in the Netherlands:
```python
# Show the industries of financial companies in the Netherlands
equities.show_options(
selection="industry",
sector="Financials",
country="Netherlands",
)
```
Which returns:
```text
['Banks', 'Capital Markets', 'Consumer Lending', 'Insurance',
'Payments & Specialty Finance']
```
And below the number of companies in each of these industries is shown. Each company is counted once, however many exchanges it is listed on: listings that share an ISIN, share class FIGI, website or the first word of their name (such as ING Groep's listings in Amsterdam, Frankfurt, New York and São Paulo) are combined.
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/JerBouma/FinanceDatabase/main/assets/readme/options-dark.png">
<img alt="Options" src="https://raw.githubusercontent.com/JerBouma/FinanceDatabase/main/assets/readme/options-light.png">
</picture>
The options of every column can be shown this way, including `currency`, `exchange`, `market`, `country` and `market_cap` (Mega, Large, Mid, Small, Micro and Nano Cap). **Try it in the Database Explorer [here](https://www.jeroenbouma.com/projects/financedatabase/explorer).**
### Selecting Equities
Given these options, it becomes possible to filter the database on the categories you are interested in. For example, the 'Insurance' companies in the 'United States', one row per company. The `sector` can be omitted here since the industry already implies 'Financials'.
```python
# Select the primary listings of insurance companies in the United States
equities.select(
country="United States",
industry="Insurance",
only_primary_listing=True,
)
```
This returns 194 companies, of which a few of the larger ones are shown below.
| symbol | name | currency | sector | industry | exchange | market | country | market_cap |
|:---------|:---------------------------------|:-----------|:-----------|:-----------|:-----------|:------------------------|:--------------|:-------------|
| AFL | Aflac Incorporated | USD | Financials | Insurance | NYQ | New York Stock Exchange | United States | Large Cap |
| AJG | Arthur J. Gallagher & Co. | USD | Financials | Insurance | NYQ | New York Stock Exchange | United States | Large Cap |
| BRO | Brown & Brown, Inc. | USD | Financials | Insurance | NYQ | New York Stock Exchange | United States | Large Cap |
| CINF | Cincinnati Financial Corporation | USD | Financials | Insurance | NMS | NASDAQ Global Select | United States | Large Cap |
| PGR | Progressive Corporation | USD | Financials | Insurance | NYQ | New York Stock Exchange | United States | Large Cap |
Without `only_primary_listing=True`, the same query returns 455 listings on 23 exchanges, because every exchange a company trades on is shown by default. Progressive, for example, also appears as `PGV.F` (Frankfurt), `PGV.SG` (Stuttgart), `PGR.MX` (Mexico) and `P1GR34.SA` (B3). The primary listing of a company is its listing on the main exchange of its home market, or without one its listing on the largest main exchange abroad. It is worked out from the data itself, so it works for companies anywhere: for ASML it is `ASML.AS` on Euronext Amsterdam, not `ASML` on NASDAQ or `ASMLF` over the counter. To get the listings in a particular country instead, such as the US listings of ASML, filter on the `exchange`, `market` or `currency`.
For the Netherlands, it makes sense to select the market "Euronext Amsterdam" (exchange "AMS"), here for the semiconductor companies:
```python
# Select the semiconductor companies on Euronext Amsterdam
equities.select(
country="Netherlands",
industry="Semiconductors & Chip Equipment",
market="Euronext Amsterdam",
)
```
This gives the following three companies:
| symbol | name | currency | sector | industry | exchange | market | country | market_cap | isin |
|:---------|:---------------------------------|:-----------|:-----------------------|:--------------------------------|:-----------|:-------------------|:------------|:-------------|:-------------|
| ASM.AS | ASM International N.V. | EUR | Information Technology | Semiconductors & Chip Equipment | AMS | Euronext Amsterdam | Netherlands | Large Cap | NL0000334118 |
| ASML.AS | ASML Holding N.V. | EUR | Information Technology | Semiconductors & Chip Equipment | AMS | Euronext Amsterdam | Netherlands | Mega Cap | NL0010273215 |
| BESI.AS | BE Semiconductor Industries N.V. | EUR | Information Technology | Semiconductors & Chip Equipment | AMS | Euronext Amsterdam | Netherlands | Large Cap | NL0012866412 |
Every filter also accepts a list, so both queries can be combined into one with `country=["Netherlands", "United States"]` and `market=["Euronext Amsterdam", "New York Stock Exchange", "NASDAQ Global Select"]`. Equities can be selected on `country`, `sector`, `industry_group`, `industry`, `currency`, `exchange`, `mic`, `market` and `market_cap`. **Try it in the Database Explorer [here](https://www.jeroenbouma.com/projects/financedatabase/explorer).**
### Searching the Database
If the categorization doesn't lead to the results you are looking for, `search` filters on any column via a custom string. If the text is found anywhere in the column, the entry is returned. Searches are not case sensitive unless `case_sensitive=True` is set, `index` searches the symbol and, just like `select`, every argument accepts a list.
```python
# Search for robotics or education companies with equipment on the Frankfurt Stock Exchange
equities.search(
summary=["Robotics", "Education"],
industry="Equipment",
market="Frankfurt",
index=".F",
)
```
This returns the instruments listed on the Frankfurt Stock Exchange in an industry containing "Equipment" and with "Robotics" or "Education" in their summary. Filtering on `index=".F"` is an alternative way to find the exchange or market you are looking for.
| symbol | name | currency | sector | industry | exchange | market | country | market_cap |
|:-------|:------------------------------------------------------------|:---------|:-----------------------|:--------------------------------------|:---------|:-------------------------|:---------------|:-----------|
| 1YO.F | Yangtze Optical Fibre And Cable Joint Stock Limited Company | EUR | Information Technology | Networking & Communications Equipment | FRA | Frankfurt Stock Exchange | China | Large Cap |
| 2IU.F | Boxlight Corporation | EUR | Information Technology | Networking & Communications Equipment | FRA | Frankfurt Stock Exchange | United States | Nano Cap |
| 49V.F | Vertiv Holdings Co | EUR | Industrials | Electrical Equipment | FRA | Frankfurt Stock Exchange | United States | Large Cap |
| A1Z1.F | eEnergy Group Plc | EUR | Industrials | Electrical Equipment | FRA | Frankfurt Stock Exchange | United Kingdom | Nano Cap |
| A8B.F | Ambarella, Inc. | EUR | Information Technology | Semiconductors & Chip Equipment | FRA | Frankfurt Stock Exchange | United States | Mid Cap |
And below the results are counted per industry.
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/JerBouma/FinanceDatabase/main/assets/readme/search-dark.png">
<img alt="Search" src="https://raw.githubusercontent.com/JerBouma/FinanceDatabase/main/assets/readme/search-light.png">
</picture>
The `search` function works on every column of every asset class, including `name`, `isin`, `cusip` and `figi`. **Try it in the Database Explorer [here](https://www.jeroenbouma.com/projects/financedatabase/explorer).**
### Exploring other Asset Classes
All of these functions are also available for the other asset classes. The only difference is the class name and the columns. For example, ETFs use `fd.ETFs()` and are selected on `category_group`, `category` and `family` instead.
```python
# Initialize the ETFs database
etfs = fd.ETFs()
# Select the Fixed Income ETFs of Vanguard
etfs.select(
category_group="Fixed Income",
family="Vanguard Asset Management",
)
```
For example, see some of the Vanguard bond ETFs listed in Berlin below:
| symbol | name | currency | category_group | category | family | exchange |
|:---------|:-----------------------------------------------------------------|:-----------|:-----------------|:-----------------------|:--------------------------|:-----------|
| 0250.BE | Vanguard Intermediate-Term Corporate Bond Index Fund ETF Shares | EUR | Fixed Income | Corporate Bonds | Vanguard Asset Management | BER |
| 0251.BE | Vanguard Short-Term Corporate Bond Index Fund ETF Shares | EUR | Fixed Income | Corporate Bonds | Vanguard Asset Management | BER |
| 0252.BE | Vanguard Total World Bond ETF | EUR | Fixed Inco