Comments (1)
Try updating maybe?
Your code works on my machine (running yfinance==0.2.40).
My log:
DEBUG Entering download()
DEBUG Disabling multithreading because DEBUG logging enabled
DEBUG Entering history()
DEBUG Entering history()
DEBUG AAPL: Yahoo GET parameters: {'period1': '1925-06-22 20:00:00-04:00', 'period2': '2024-05-29 14:52:45-04:00', 'interval': '1mo', 'includePrePost': False, 'events': 'div,splits,capitalGains'}
DEBUG Entering get()
DEBUG url=https://query2.finance.yahoo.com/v8/finance/chart/AAPL
DEBUG params={'period1': -1405123200, 'period2': 1717008765, 'interval': '1mo', 'includePrePost': False, 'events': 'div,splits,capitalGains'}
DEBUG Entering _get_cookie_and_crumb()
DEBUG cookie_mode = 'basic'
DEBUG Entering _get_cookie_and_crumb_basic()
DEBUG loaded persistent cookie
DEBUG reusing cookie
DEBUG crumb = 'st20rwu6dJv'
DEBUG Exiting _get_cookie_and_crumb_basic()
DEBUG Exiting _get_cookie_and_crumb()
DEBUG response code=200
DEBUG Exiting get()
DEBUG AAPL: yfinance received OHLC data: 1985-01-01 05:00:00 -> 2024-05-29 18:52:43
DEBUG AAPL: OHLC after cleaning: 1985-01-01 00:00:00-05:00 -> 2024-05-01 00:00:00-04:00
DEBUG AAPL: OHLC after combining events: 1985-01-01 00:00:00-05:00 -> 2024-05-01 00:00:00-04:00
DEBUG AAPL: yfinance returning OHLC: 1985-01-01 00:00:00-05:00 -> 2024-05-01 00:00:00-04:00
DEBUG Exiting history()
DEBUG Exiting history()
DEBUG Exiting download()
Open High ... Dividends Stock Splits
Date ...
1985-01-01 0.130022 0.138951 ... 0.00 0.0
1985-02-01 0.129464 0.137277 ... 0.00 0.0
1985-03-01 0.110491 0.116071 ... 0.00 0.0
1985-04-01 0.098772 0.102679 ... 0.00 0.0
1985-05-01 0.094866 0.099330 ... 0.00 0.0
... ... ... ... ... ...
2024-01-01 187.149994 196.380005 ... 0.00 0.0
2024-02-01 183.990005 191.050003 ... 0.24 0.0
2024-03-01 179.550003 180.529999 ... 0.00 0.0
2024-04-01 171.190002 178.360001 ... 0.00 0.0
2024-05-01 169.580002 193.000000 ... 0.25 0.0
[473 rows x 8 columns]
from yfinance.
Related Issues (20)
- yFinance download API works differently on Linux vs Windows system HOT 5
- .news will raise JSONDecodeError HOT 2
- Ticker for mutual fund only giving top holdings. Is there any way to get full holding list of a mutual fund? HOT 1
- Typo in `pct_string = f'{percent_done}%%'`
- INCORRECT MARKET DATA FOR NSE SEGMENT
- ConnectionError HOT 22
- yfinance There is too little hourly data on options HOT 1
- Fix 30min interval of ^NSEI HOT 1
- No forwardPE for NWS
- New error even after uninstalling/reinstalling. HOT 4
- Calculating the yf.download function in a pandas column HOT 3
- 0.2.42 still issue with timezone-aware with multiply tickers
- Typo, should be msft instead of msfs
- annualReportExpenseRatio missing HOT 2
- Not Receiving Updated data in .info HOT 1
- No Update for stock price
- Unable to get history of ASIANPAINT.NS on May 4, 2022 HOT 4
- OperationalError('no such table: _kv') - unable to retrieve any sort of data at all HOT 3
- YFinance Returns Incorrect Timeseries Date for 2024-09-03
- New version of numpy 1.26.4 incompatibility with np.bool existence HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yfinance.