lingyixu / Quant-Finance-With-Python-Code

Repo for code examples in Quantitative Finance with Python by Chris Kelliher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quant-Finance-With-Python-Code

Repo for code examples in Quantitative Finance with Python by Chris Kelliher

[11/13/2023] Comment on Yahoo Finance data retrieval

Issue:

Function data.get_data_yahoo() in panadas_datareader no longer works due to Yahoo Finance codebase migration.
See detailed discussion here.

Solution:

Use yfinance. Example:

import yfinance as yf
df = yf.download(['XLK', 'SPY'], start='2023-01-01', end='2023-08-31')['Adj Close']

About

Repo for code examples in Quantitative Finance with Python by Chris Kelliher


Languages

Language:Jupyter Notebook 94.2%Language:Python 5.8%