{"id":28011,"library":"openbb-yfinance","title":"OpenBB yfinance Extension","description":"OpenBB Platform extension that provides stock market data from Yahoo Finance via the yfinance library. Version 1.6.2, released monthly.","status":"active","version":"1.6.2","language":"python","source_language":"en","source_url":"https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_platform/platform/extensions/yfinance","tags":["openbb","yfinance","stocks","finance","extension"],"install":[{"cmd":"pip install openbb-yfinance","lang":"bash","label":"Standard install"}],"dependencies":[{"reason":"Extension requires the OpenBB Platform core.","package":"openbb","optional":false},{"reason":"Underlying data provider.","package":"yfinance","optional":false}],"imports":[{"symbol":"YFinanceFetcher","correct":"from openbb_yfinance import YFinanceFetcher"},{"symbol":"OBBject","correct":"from openbb_core.object import OBBject"}],"quickstart":{"code":"from openbb import obb\n\n# Set API keys if needed (not strictly required for yfinance)\n# obb.user.preferences.output_type = 'dataframe'\n\n# Fetch historical data for Apple\nresult = obb.equity.price.historical(\n    symbol='AAPL',\n    start_date='2024-01-01',\n    end_date='2024-12-31'\n)\nprint(result.to_df().head())","lang":"python","description":"Initialize OpenBB and retrieve historical stock data using the yfinance extension."},"warnings":[{"fix":"Use the new router-based API: obb.equity.price.historical(...) instead of obb.equity.historical(...).","message":"OpenBB v4 changed the import structure. Code written for v3 must be rewritten.","severity":"breaking","affected_versions":"all versions using openbb-yfinance with OpenBB v4 vs v3"},{"fix":"Remove provider='yfinance' from calls. The extension is loaded automatically.","message":"The 'provider' parameter is no longer accepted in most commands; yfinance is auto-detected.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Use with caution for non-critical analysis.","message":"Yahoo Finance data may be delayed or missing due to API restrictions; not suitable for real-time trading.","severity":"breaking","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run 'pip install openbb-yfinance' in the same environment as openbb.","cause":"Extension not installed or installed in wrong environment.","error":"ModuleNotFoundError: No module named 'openbb_yfinance'"},{"fix":"Install the extension: pip install openbb-yfinance and restart the kernel.","cause":"openbb-yfinance not installed after openbb core.","error":"RuntimeError: Provider 'yfinance' is not installed. Please install the corresponding provider package."},{"fix":"Use uppercase ticker without spaces or special characters, e.g. 'AAPL'.","cause":"Invalid ticker symbol format.","error":"ValueError: 'symbol' must be a valid ticker with no spaces"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}