Comments (5)
I can't reproduce. What happens if you disable repair
?
from yfinance.
Hi @ValueRaider , thank you for looking into this! I have tried to use disable repare but it doesn't help. Will it have anything to do with regions? Previously, there's a issue that .meta()
does not work in regions outside of US.
from yfinance.
No idea. Repost debug log with repair disabled, it'll be a lot shorter.
from yfinance.
Hi @ValueRaider , the debug log:
DEBUG Entering history()
DEBUG Entering history()
DEBUG TSLA: Yahoo GET parameters: {'period1': '2022-08-24 00:00:00-04:00', 'period2': '2022-08-26 00:00:00-04:00', 'interval': '1h', 'includePrePost': False, 'events': 'div,splits,capitalGains'}
DEBUG Entering get()
DEBUG url=https://query2.finance.yahoo.com/v8/finance/chart/TSLA
DEBUG params=frozendict.frozendict({'period1': 1661313600, 'period2': 1661486400, 'interval': '1h', 'includePrePost': False, 'events': 'div,splits,capitalGains'})
DEBUG Entering _get_cookie_and_crumb()
DEBUG cookie_mode = 'basic'
DEBUG Entering _get_cookie_and_crumb_basic()
DEBUG fetched basic cookie = <Cookie A3=d=AQABBH-q52UCEM9bsfeRx5Pjn08Qms8drhcFEgEBAQH76GXxZa9D8HgB_eMAAA&S=AQAAAlIL0WVAezo1MqRv5bitsfE for .yahoo.com/>
DEBUG reusing cookie
DEBUG crumb = 'cKaZy.sBWM0'
DEBUG Exiting _get_cookie_and_crumb_basic()
DEBUG Exiting _get_cookie_and_crumb()
DEBUG response code=200
DEBUG Exiting get()
DEBUG TSLA: yfinance received OHLC data: 2022-08-24 13:30:00 -> 2022-08-25 19:30:00
DEBUG TSLA: OHLC after cleaning: 2022-08-24 09:30:00-04:00 -> 2022-08-25 15:30:00-04:00
DEBUG TSLA: OHLC after combining events: 2022-08-24 09:30:00-04:00 -> 2022-08-25 15:30:00-04:00
DEBUG TSLA: yfinance returning OHLC: 2022-08-24 09:30:00-04:00 -> 2022-08-25 15:30:00-04:00
DEBUG Exiting history()
DEBUG Exiting history()
Open High Low Close Adj Close Volume Dividends Stock Splits
Datetime
2022-08-24 09:30:00-04:00 892.690002 910.940002 891.049988 907.104614 907.104614 7021349 0.0 0.0
2022-08-24 10:30:00-04:00 907.572998 908.400024 901.059998 904.039978 904.039978 2737542 0.0 0.0
2022-08-24 11:30:00-04:00 904.260010 907.559998 902.119995 905.380005 905.380005 1554554 0.0 0.0
2022-08-24 12:30:00-04:00 905.340027 906.400024 895.479980 896.107727 896.107727 1997977 0.0 0.0
2022-08-24 13:30:00-04:00 895.940002 900.309998 895.340027 897.099976 897.099976 1378497 0.0 0.0
2022-08-24 14:30:00-04:00 897.049988 897.340027 889.500000 892.789978 892.789978 2078101 0.0 0.0
2022-08-24 15:30:00-04:00 892.775024 894.979980 890.000000 891.450012 891.450012 1366247 0.0 0.0
2022-08-25 09:30:00-04:00 302.359985 302.959991 293.140106 297.492096 297.492096 20100512 0.0 0.0
2022-08-25 10:30:00-04:00 297.549988 298.089996 291.600006 293.070007 293.070007 9438207 0.0 0.0
2022-08-25 11:30:00-04:00 293.149994 294.980011 291.920105 293.850098 293.850098 5161989 0.0 0.0
2022-08-25 12:30:00-04:00 293.950012 295.692993 292.799988 294.836609 294.836609 4205521 0.0 0.0
2022-08-25 13:30:00-04:00 294.837799 295.640686 293.114288 293.309998 293.309998 3702607 0.0 0.0
2022-08-25 14:30:00-04:00 293.380005 293.679993 291.799988 293.440002 293.440002 4667132 0.0 0.0
2022-08-25 15:30:00-04:00 293.427612 296.149994 293.021088 296.109985 296.109985 4241512 0.0 0.0
DEBUG Entering history()
DEBUG Entering history()
DEBUG TSLA: Yahoo GET parameters: {'period1': '2022-08-24 00:00:00-04:00', 'period2': '2022-08-26 00:00:00-04:00', 'interval': '1d', 'includePrePost': False, 'events': 'div,splits,capitalGains'}
DEBUG Entering get()
DEBUG url=https://query2.finance.yahoo.com/v8/finance/chart/TSLA
DEBUG params=frozendict.frozendict({'period1': 1661313600, 'period2': 1661486400, 'interval': '1d', 'includePrePost': False, 'events': 'div,splits,capitalGains'})
DEBUG Entering _get_cookie_and_crumb()
DEBUG cookie_mode = 'basic'
DEBUG Entering _get_cookie_and_crumb_basic()
DEBUG reusing cookie
DEBUG reusing crumb
DEBUG Exiting _get_cookie_and_crumb_basic()
DEBUG Exiting _get_cookie_and_crumb()
DEBUG response code=200
DEBUG Exiting get()
DEBUG TSLA: yfinance received OHLC data: 2022-08-24 13:30:00 -> 2022-08-25 13:30:00
DEBUG TSLA: OHLC after cleaning: 2022-08-24 09:30:00-04:00 -> 2022-08-25 09:30:00-04:00
DEBUG TSLA: OHLC after combining events: 2022-08-24 00:00:00-04:00 -> 2022-08-25 00:00:00-04:00
DEBUG TSLA: yfinance returning OHLC: 2022-08-24 00:00:00-04:00 -> 2022-08-25 00:00:00-04:00
DEBUG Exiting history()
DEBUG Exiting history()
Open High Low Close Adj Close Volume Dividends Stock Splits
Date
2022-08-24 00:00:00-04:00 297.563324 303.646667 296.500000 297.096680 297.096680 57259800 0.0 0.0
2022-08-25 00:00:00-04:00 302.359985 302.959991 291.600006 296.070007 296.070007 53230000 0.0 0.0
from yfinance.
The log said "v8" in the url. Is this correct version?
from yfinance.
Related Issues (20)
- Forward PE Ratio incorrect
- How to catch "invalid crumb" exception from yfinance in Python 3.11.9? HOT 1
- Limited period auto adjust with "max" period value
- Provide statistical indicators functionality
- fc.yahoo.com on port 443 (https) is not reachable HOT 2
- Throw specific errors instead of generic 'Exception' would make for safer and nicer client implementations HOT 3
- Yahoo Finance is Super Slow
- earnings_dates not available HOT 5
- Volume = 0 HOT 1
- Volume = 0 HOT 1
- yfinance download for tickers with sunday working day. HOT 2
- Incorrect handling of historic prices for corporate actions for GCC Stocks HOT 1
- latest version 0.2.38 have so many errors on get_earnings_dates() return data HOT 4
- get_earnings_dates slow
- Error: Failed to parse holders json data.
- SyntaxError: f-string: unmatched '[' HOT 5
- 0.2.39 introduces issues with `repair` HOT 2
- 0.2.40: not ready for `numpy` 1.26.4? 🤔 HOT 2
- Pip install fails 3.13.0b1
- missing data for private companies
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.