Data on yahoo
Unfortunately, it seems like Yahoo Finance is not very service-minded anymore when it comes to downloading data on their web-page. The data can be seen on the screen, but there is no easy way (if any way) to click on a "download"-button to get a csv-file. However, a python-solution is available, thanks to information from one of your student fellows Jonas Rike Myhre!
import yfinance as yf
import datetime as dt
start = dt.datetime(2022,9,4)
end = dt.datetime.now()
df=yf.download("AAPL",start,end)
df.to_csv("APPLE.csv")
In doing the exercises linked to the mandatory assignment, you are allowed to use other sources to get data, even older data sets are fine. But I recommend trying out the python code to get data.
Published Sep. 11, 2024 3:03 PM
- Last modified Sep. 11, 2024 3:03 PM