FMP
Sep 30, 2022 2:20 AM - Jack Dalton
Financial Modelling Prep provides a free stock API, financial statement API, and lots more valuable financial data. Before you can start taking advantage of our service you must first set up the environment where you are going to write your code. In this guide, we will explain exactly how to do this:
Anaconda is one of the leading python and data science platforms. It enables you to be able to have your own Jupyter Notebook style environment to write your code and run your analysis. The Jupyter Notebook environment is great for beginners to intermediate coders because it allows you to run individual blocks of code and get their specific outputs. Everything in one notebook will be connected so it makes it much easier to debug your code and figure out the exact location of any errors. Anaconda enables you to create your own Juptyer Notebook environment that will store your files locally on your PC or Mac. Here are the instructions from Anaconda on how to install it on your Mac or Windows PC:
Now that you've installed Anaconda, it is time to launch JupyterLab and start making your environment your own. First you will need to open the Anaconda Navigator. Don't be scared by the seemingly scary command centre code it runs when you open it - this is normal and won't harm your computer. Once you've launched Anaconda Navigator you'll be asked to make an account which is not necessary to get started so we recommend you ignore this. You should get to a screen like this:
Click the Launch Button underneath JupyterLab which is highlighted above. This will take you to a new tab on your preferred browser and will look something like this:
Once successfully launched, you'll want to create a new folder and name whatever makes the most sense to you (We called ours FMP because we're biased!). Below you'll see that the new folder button is highlighted:
After you've created the main folder that you'll store all your work, spend some time thinking about how to organize your subfolders. We recommend creating a new folder for each project you take on and putting all your work for that project in that folder. This will likely be multiple Jupyter notebooks and other files such as CSVs. Below is an example of the folder structure we have used:
So now your environment is all set up, it is time to start writing some code and performing analysis using Python. To start, perhaps create a folder called “Learning” or something similar to store all of your notebooks used to get started and learn new skills. To open the folder, simply double click it. To navigate back press the name of the main folder. To open your first notebook click the tile beneath the Notebook header that says “Python 3” and a new notebook will open!
By default, this notebook will be untitled. To rename the notebook either right-click the file in the left-hand side or at the top of the tab and then select rename. These two are highlighted below:
To make sure Jupyter is working properly always run a simple test bit of code and make sure the output works well. For example, try typing the following into the first cell:
x = 7 * 5
x
Then hit enter.
You should of course get an output of 35
If you want to create a new notebook, click the + icon in the top left corner of Jupyter and it will bring up a new launcher where you can follow the steps above to begin a new notebook.
So that's how you can get your Python coding environment set up and start coding. First, download and install Anaconda. Then, launch JupyterLabs and create your folder structure. Finally, launch your first notebook and test it works before beginning your coding adventure!
Oct 31, 2023 8:03 AM - Parth Sanghvi
Free cash flow to the firm (FCFF) and free cash flow to equity (FCFE) are two of the most important metrics used in financial modeling. Both metrics measure the amount of cash that is available to a company's shareholders and creditors, but there is a key difference between the two. FCFF measures...
Nov 25, 2023 6:39 AM - Parth Sanghvi
Choosing the Right Valuation Method: DCF vs. Comparable Companies Analysis Introduction: Valuation methods play a pivotal role in determining the fair value of a company, aiding investors in making informed investment decisions. Two commonly used methods, DCF Valuation and Comparable Companies A...
Dec 23, 2023 2:19 AM - Parth Sanghvi
Introduction: Discounted Cash Flow (DCF) analysis stands as a cornerstone in valuing investments, yet its efficacy is contingent upon various assumptions and methodologies. While a powerful tool, DCF analysis comes with inherent limitations and challenges that investors must acknowledge to make i...