First off all, thank you for taking the time to contribute (or at least read the Contributing Guidelines)! 🚀
The FinanceDatabase serves the role of providing anyone with any type of financial product categorisation entirely for free. To be able to achieve this, the FinanceDatabase relies on involvement from the community to update, edit and remove tickers over time. This is made easy enough that anyone, even with a lack of coding experience can contribute because of the generation of CSV files that can be manually edited.
The following is a set of guidelines for contributing to the FinanceDatabase. They are meant to guide you through how updating of the FinanceDatabase works and how you can contribute with little coding background as well.
When you are just looking to make edits or know your way around Excel well, I'd recommend downloading the CSV files with the following link:
Then, follow these steps to update the CSV files accordingly.
Download & Update the CSV Files | Create a Database Update Issue or Pull Request on GitHub |
---|---|
You can help out tremendously by updating one of the CSV files. This can be done through Excel and by making use of CTRL + F to find and edit symbols and their data efficiently. Carefully go through the cells making sure you're following the descriptions as mentioned here. After having saved the files, you're ready to go to the next step. | Once you've made your update, you can go here and select Database Update . Then, within the textbox enter a description of what you changed and then drag and drop your updated CSV files. From here on, I'll make sure to update the Database with your updates which will be visible within the database within minutes.Alternatively you can also make a Pull Request as described here. This is mostly meant for Developers that know their way around Git. |
It is also possible to load in the files directly into e.g. a Jupyter Notebook and make the edits how you like by using packages like pandas to search. It could be that certain naming is off that you want to correct automatically for all tickers that match the criteria or perhaps you want to fill sectors and industries automatically. Depending whether you have the database remote or locally, you can use:
- If remote:
pd.read_csv("https://github.com/JerBouma/FinanceDatabase/blob/main/database/equities.csv?raw=true", index_col=0)
- If locally:
pd.read_csv("database/equities.csv", index_col=0)
Change the asset class name (equities.csv
) to any of the file names as found here. Then, once you have made your changes you can use df.to_csv('equities.csv')
to export back to the CSV format. From here on, follow the above steps again or create a Pull Request as described here.
If the Database is stored Remote | If the Database is stored Locally |
---|---|
There are a variety of ways you can help out, these can be:
Topic | Description |
---|---|
Adding ISIN, CIK, FIGI, CUSIP, SEDOL and more | Currently, the database has one ticker format. Ideally, every single ticker has multiple codes from ISIN, CIK, FIGI, CUSIP and SEDOL and also how platforms like Bloomberg, Factset, Eikon Refinitiv and OpenBB represent their tickers. |
Testing Symbols | Understand whether symbols and companies still exist by Googling and if not, removing them from the database. Tickers could stop existing due to name changes (like Facebook to META), going bankrupt or merging with other firms. Indices, ETFs, Funds, Moneymarkets and Cryptocurrencies could be updated in a similar fashion. |
Updating Categories | If the value for e.g. "Sector" or "Industry" (equities) or "Category" (ETFs and Funds) is missing or seems to be incorrect, figure out what would fit for that ticker and update accordingly. |
Update Identical Symbols | ASML, ASML.DE and ASML.AS are all the same company but are listed on different exchanges. Do they all contain the same information? If not, feel free to update the information accordingly. Here you can use ASML (the ticker without the dot) as base. |
Update Naming | If the name doesn't properly represent the company or is inconsistent with other results (e.g. TESLA INC, TESLA CORPORATION, Tesla Inc.) |
These are just a few examples but feel free to proceed how you'd like! Any help is much appreciated!
For Equities, these are the categories. Other asset classes follow a similar lay-out, see examples.
- symbol: set the symbol of the company.
- name: enter the full company name.
- summary: enter a brief company description, explaining the purpose of the company.
- currency: select the denominated currency of this specific ticker (based on exchange).
- sector: select the sector that belongs to the company (follows GICS)
- industry_group: select the industry group that belongs to the company (follows GICS).
- industry: select the industry that belongs to the company (follows GICS).
- exchange: select the exchange the company is listed at.
- market: enter which market the company belongs to, this is related to the exchange as well.
- country: select the country where the company's headquarters is located.
- state: if applicable, select a state in the United States.
- city: select the city where the company's headquarters is located.
- zipcode: if applicable, enter the zipcode.
- website: if applicable, enter the website.
- market_cap: based on market cap categorization define the market cap.
If in any case you are not able to acquire data for a specific category, keep the field blank so that it is clear that there is no data available. For any of these options, make sure you use an existing category so that it remains compact. For example, the sectors, industry groups and industries loosely approximate to the The Global Industry Classification Standard (GICS®) as created by MSCI. No actual data is collected from this source and this database merely tries to reflect the sectors and industries as best as possible. This is completely done through manual curation. The actual datasets as curated by MSCI have not been used in the development of any part of this database and remains the most up to date, paid, solution. Other categorizations are entirely developed by the author and can freely be changed.
If you know your way around Git and GitHub this is the preferred way of providing updates. In any case, I still provide information regarding how to set up Git.
Any new contribution preferably goes via a Pull Request. In essence, all you really need is Git and basic understanding of how a Pull Request works. Find some resources that explain this well here:
On every Pull Request, a couple of linters will run (see here as well as categorization and compression linters). The linters check the code and whether it matches specific coding formatting. This is entirely irrelevant for the database itself but keeps the code of the related package in check as well as any markdown changes. The categorization and compression actions are very relevant for the database as it makes it much easier and faster to read data.
After setting up Git, you can fork and pull the project in.
- Fork the Project (more info)
- Using GitHub Desktop: Getting started with GitHub Desktop will guide you through setting up Desktop. Once Desktop is set up, you can use it to fork the repo!
- Using the command line: Fork the repo so that you can make your changes without affecting the original project until you're ready to merge them.
- Pull the Repository Locally (more info)
- Create your own branch (
git checkout -b feature/contribution
) - Add your changes (
git add .
) - Commit your Changes (
git commit -m 'Improve the Database'
) - Push to your Branch (
git push origin feature/contribution
) - Open a Pull Request
The database files resides in the Database
folder whereas the files that are loaded with the package are inside the compression
folder. Refer to the Updating the Database section what is required to update the data files.
The files in the financedatabase
folder are used to build the related package that allows you to search the database effectively. If you have any suggestions or improvements for this package, feel free to propose this in a Pull Request.