FinanceDatabase
This is a database of 300.000+ symbols containing Equities, ETFs, Funds, Indices, Currencies, Cryptocurrencies and Money Markets.
Install / Use
/learn @JerBouma/FinanceDatabaseREADME
| Call for Contributors to the FinanceDatabase | |:------------------------------------------------------:| | The FinanceDatabase serves the role of providing anyone with any type of financial product categorization entirely for free. To achieve this, the FinanceDatabase relies on community involvement to add, edit, and remove tickers over time. This is made easy enough that anyone, even those with a lack of coding experience, can contribute because of the use of CSV files that can be manually edited with ease. I'd like to invite you to go to the Contributing Guidelines to understand how you can help. Thank you! |
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 database tries to solve that. It features 300,000+ symbols containing Equities, ETFs, Funds, Indices, Currencies, Cryptocurrencies, and Money Markets. It therefore allows you to obtain a broad overview of sectors, industries, types of investments, and much more.
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 🛠️. 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. For examples of how you can combine this database with the earlier mentioned packages, see the Usage section.
Some key statistics of the database:
| Product | Quantity | Sectors | Industries | Countries | Exchanges | | ----------------- | ---------- | ---------- | ------------- | --------- | --------- | | Equities | 158.429 | 12 | 63 | 111 | 83 | | ETFs | 36.786 | 295 | 22 | 111 | 53 | | Funds | 57.881 | 1541 | 52 | 111 | 34 |
| Product | Quantity | Category | | ----------------- | --------- | --------------------- | | Currencies | 2.556 | 175 Currencies | | Cryptocurrencies | 3.367 | 352 Cryptocurrencies | | Indices | 91.183 | 64 Exchanges | | Money Markets | 1.367 | 3 Exchanges |
The Finance Database is used within or referenced by:
<a href="https://algotrading101.com/learn/financedatabase-python-guide/"><img width="200" height="100" alt="AlgoTrading" src="https://github-production-user-asset-6210df.s3.amazonaws.com/46355364/265290727-4c113348-45fc-45fe-afb5-e043b738ee94.png"></a> <a href="https://twitter.com/pyquantnews/status/1576185955677077504?lang=en"><img width="200" height="100" alt="PyQuantNews" src="https://github-production-user-asset-6210df.s3.amazonaws.com/46355364/265290754-8c9025fb-3830-4f41-95fd-e5e6d0f84758.png"></a> <a href="https://alpha2phi.medium.com/investment-analysis-finance-database-61f47ecfe7ca"><img width="200" height="100" alt="Medium" src="https://github-production-user-asset-6210df.s3.amazonaws.com/46355364/265290765-dfbd0f4c-85eb-4de6-adba-345cb5189f31.png"></a>
Installation
Before installation, consider starring the project on GitHub, which helps others find the project as well.
<img width="1353" alt="image" src="https://github.com/JerBouma/FinanceDatabase/assets/46355364/4132edde-72f9-4e32-adfe-8872207f46ff">To install the FinanceDatabase, simply use the following:
pip install financedatabase -U
Then within Python use:
import financedatabase as fd
Usage
This section explains in detail how the database can be queried with the related financedatabase package. Note that examples here are purposely cut off to a maximum of 10 entries due to the sheer size of the database. Furthermore, the summary column is also omitted for readability. For the full detailed results, see the Notebook here. Let's start by importing the package:
import financedatabase as fd
Initialization of each asset class is only required <u>once</u>. It is therefore important that you save the class to a variable so that you can query the database much more quickly. A simple example is shown below.
equities = fd.Equities()
equities.select()
A sample of the output is shown below:
| symbol | name | currency | sector | industry_group | industry | exchange | market | country | state | city | zipcode | website | market_cap | isin | cusip | figi | composite_figi | shareclass_figi | |:---------|:-------------------------------|:-----------|:-----------------------|:-----------------------------------------------|:---------------------------------------|:-----------|:--------------------------|:--------------|:--------|:--------------------|:-----------|:---------------------------------|:-------------|:-------------|:----------|:-------------|:-----------------|:------------------| | PMTA.DU | PTC Inc. | EUR | Information Technology | Software & Services | Software | DUS | Dusseldorf Stock Exchange | United States | MA | Boston | 2210 | http://www.ptc.com | Large Cap | US69370C1009 | 69370C100 | BBG000FC6SC5 | BBG000FC5PS5 | BBG001S6DNK6 | | VAW.F | VAALCO Energy, Inc. | EUR | Energy | Energy | Oil, Gas & Consumable Fuels | FRA | Frankfurt Stock Exchange | United States | TX | Houston | 77042 | http://www.vaalco.com | Micro Cap | US91851C2017 | 91851C201 | BBG000CN15Y5 | BBG000CN15F6 | BBG001S76ZS7 | | ORC.DE | Oracle Corporation | EUR | Information Technology | Software & Services | Software | GER | XETRA | United States | TX | Austin | 78741 | http://www.oracle.com | Mega Cap | US68389X1054 | 68389X105 | BBG000C0RY38 | BBG000C0RWW0 | BBG001S5SJG6 | | PAYX | Paychex, Inc. | USD | Industrials | Commercial & Professional Services | Professional Services | NMS | NASDAQ Global Select | United States | NY | Rochester | 14625-2396 | http://www.paychex.com | Large Cap | US7043261079 | 704326107 | BBG000BQT1J5 | BBG000BQSQ38 | BBG001S5V135 | | RI2A.F | Rigel Pharmaceuticals, Inc. | EUR | Health Care | Pharmaceuticals, Biotechnology & Life Sciences | Biotechnology | FRA | Frankfurt Stock Exchange | United States | CA | South San Francisco | 94080 | http://www.rigel.com | Small Cap | US7665596034 | 766559603 | BBG000BKZNR4 | BBG000BKZNC0 | BBG001SD33Z0 | | PGEN | Precigen, Inc. | USD | Health Care | Pharmaceuticals, Biotechnology & Life Sciences | Biotechnology | NMS | NASDAQ Global Select | United States | MD | Germantown | 20876 | http://www.precigen.com | Small Cap | US74017N1054 | 74017N105 | BBG004TDDJ32 | BBG000QL8VH9 | BBG001SSB3T5 | | GOGO | Gogo Inc. | USD | Communication Services | Telecommunication Services | Diversified Telecommunication Services | NMS | NASDAQ Global Select | United States | IL | Chicago | 60606 | http://www.gogoair.com | Small Cap | US38046C1099 | 38046C109 | BBG002CN8Y71 | BBG002CN8XN5 | BBG002CN8YD4 | | CRK | Comstock Resources, Inc. | USD | Energy | Energy | Oil, Gas & Consumable Fuels | NYQ | New York Stock Exchange | U
Related Skills
claude-opus-4-5-migration
83.2kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
notion
337.4kNotion API for creating and managing pages, databases, and blocks.
model-usage
337.4kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
feishu-drive
337.4k|
