Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yfinance period='Max' option bug #980

Closed
LucGuj opened this issue Apr 1, 2022 · 1 comment · Fixed by #1169
Closed

Yfinance period='Max' option bug #980

LucGuj opened this issue Apr 1, 2022 · 1 comment · Fixed by #1169

Comments

@LucGuj
Copy link

LucGuj commented Apr 1, 2022

The yfinance version 0.1.70 shows a bug when it comes to download historical data using the period='max' option. In fact if I run the code below I get data starting from 1950 while the data go back to 1928 (colab link: https://colab.research.google.com/drive/1eByqpQGTxKH7KmYUy-FDri6HyYALKzzw#scrollTo=spxN65Qi4EJ4). As further validation if I run the same code using yfinance 0.1.63 I get the proper historical data starting from 1928 (colab link: https://colab.research.google.com/drive/1XvUF6ngMskT-aKduMTi_jgsvsRvSYLz_#scrollTo=iR3GS3f9kU3D)

import yfinance as yf

ticker = '^GSPC'
Stock = yf.Ticker(ticker)
Stock_Data = Stock.history(period="max",auto_adjust = False)

Stock_Data

image

image

Thanks in advance for your support and help
Luca

@ppeloton
Copy link
Contributor

Raised #1169 request to fix issue

fredrik-corneliusson added a commit to fredrik-corneliusson/yfinance-tz-cache that referenced this issue Nov 13, 2022
Change default start to 1900-01-01
fredrik-corneliusson added a commit to fredrik-corneliusson/yfinance-tz-cache that referenced this issue Nov 13, 2022
Change default start to 1900-01-01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants