{"id":45678,"library":"openbb-index","title":"OpenBB Index Extension","description":"An extension for the OpenBB Platform that provides stock market index data providers, including indices such as S&P 500, Dow Jones, NASDAQ, and more. Version 1.6.2, released 2024-08. The extension allows users to fetch historical and current index data through the OpenBB SDK. It is part of the OpenBB ecosystem and follows the same release cadence as the core platform.","status":"active","version":"1.6.2","language":"python","source_language":"en","source_url":"https://github.com/OpenBB-finance/OpenBBIndex","tags":["openbb","index","stock-market","financial-data"],"install":[{"cmd":"pip install openbb-index","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core OpenBB platform required","package":"openbb-core","optional":true}],"imports":[{"wrong":"from openbb_index import index as openbb_index","symbol":"index","correct":"from openbb_index import index"}],"quickstart":{"code":"from openbb_index import index as openbb_index\n\n# Create a reference to the index provider\nindex_provider = openbb_index.IndexProvider()\n# Fetch historical data for S&P 500\nsp500_data = index_provider.get_historical(\"^GSPC\")\nprint(sp500_data)","lang":"python","description":"Basic usage: instantiate the IndexProvider and fetch historical data for an index symbol (e.g., ^GSPC for S&P 500)."},"warnings":[{"fix":"Use `from openbb_index import IndexProvider` instead of `from openbb_index.index import ...`","message":"Version 1.5.0 changed the import path from openbb_index.index to openbb_index.IndexProvider. Old code using openbb_index.index will break.","severity":"breaking","affected_versions":">=1.5.0"},{"fix":"Ensure openbb-core is installed and run `openbb setup` or configure a provider manually.","message":"The extension requires the OpenBB core platform to be installed and configured. Running get_historical without a configured data provider will raise a ProviderNotConfiguredError.","severity":"gotcha","affected_versions":"all"},{"fix":"Use `IndexProvider.fetch_historical(symbol)` instead of `get_historical`.","message":"The method `get_historical` is deprecated in favor of `fetch_historical` in version 1.6.0. The old method will be removed in 2.0.","severity":"deprecated","affected_versions":">=1.6.0"}],"env_vars":null,"search_vec":"'-08':33 '1.6.2':30 '2024':32 '500':23 'allow':36 'cadenc':61 'core':64 'current':42 'data':15,44,73 'dow':24 'ecosystem':55 'extens':3,5,35 'fetch':39 'financi':72 'financial-data':71 'follow':57 'histor':40 'includ':17 'index':2,14,43,67 'indic':18 'jone':25 'market':13,70 'nasdaq':26 'openbb':1,8,47,54,66 'p':22 'part':51 'platform':9,65 'provid':11,16 'releas':31,60 'sdk':48 'stock':12,69 'stock-market':68 'user':37 'version':29","created_at":"2026-06-07T12:56:11.801758+00:00","updated_at":"2026-06-07T12:56:11.801758+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'index' from 'openbb_index' (/tmp/tmpk96fne57/venv/lib/python3.12/site-packages/openbb_index/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["analytics","finance"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}