Downloading historical prices
Finding accurate and up-to-date but free data sources for historical prices can be challenging. The list of data sources in PP includes the following options (see Figure 1): Alpha Vantage, EOD Historical Data, Finnhub, Leeway, Twelve Data, Portfolio Report, Quandl, and Yahoo Finance. The remaining alternatives are tailored for bitcoins and other statistical data.
Unfortunately, the terms of use for many of these options have become increasingly restrictive over time. They are included here mainly for compatibility reasons. In practical terms, only Portfolio Report and Yahoo Finance or JSON could be recommended for a typical portfolio.
Some specific use cases are discussed below. Many more are described in the Forum (in German).
Very old historical prices
Most financial services typically provide historical prices for a limited time period, such as the last year or since a specific recent date. However, if you happen to be one of the fortunate individuals who purchased Apple stock back in the 1980s, tracking your performance from the very beginning should be nice.
Note
Apple went first public on December 12, 1980, opening at $
22 a share. The company was listed on the NASDAQ stock exchange under the ticker symbol AAPL. The share has since split five times, most recently in 2020, so on a split-adjusted basis the IPO share price was $.10.
-
Choosing Yahoo Finance as the Quote Feed provider will not get you very far: only 3 months of historical quotes are downloaded, starting from today.
-
Choosing the JSON Quote Provider allows you to specify the desired period for prices. For instance, the following URL attempts to download 30 years of data:
https://query1.finance.yahoo.com/v8/finance/chart/NVDA?interval=1d&range=30y
It's not possible to obtain 30 years, but you do receive data until 1991, or about 25 years of historical prices.
-
Normally, company websites contain that kind of information. Surprisingly, The Apple website doesn't offer the option to download historical data; you only can look up some prices. On the other hand, you can access dividend and split information. NASDAQ allows you to download a CSV file that extends only 10 years into the past.
-
Naturally, being a high-profile stock, more extensive data can be found on the web. For instance, Kaggle provides a CSV file of Apple Stock Prices from 1980-2021. You could download this file, import it into the historical prices, and have Yahoo Finance append the missing data.
Mutual funds
Suppose that you want to track the Sustainable Health Care Fund
(ISIN: lu0114720955) of the European based Fidelity Funds. Yahoo Finance has only the most recent price.
Investing.com does a bit of a better job and provides historical data from the launch of the fund (2000-09-01). You can download these data as CSV file; see section on Downloading historical prices > CSV File.
Of course the most extensive website for mutual funds is Morningstar You need to visit a European website for example https://www.morningstar.co.uk/uk/funds/snapshot/snapshot.aspx?id=F0GBR04EBS&tab=13