Files
OpenBB/openbb_platform/providers
Jason 4a594d0258 fix(sec): handle unexpected SEC API responses in cik_map (#7441)
* fix(sec): handle unexpected SEC API responses in cik_map and get_all_companies

Fixes #7097

The cik_map command throws 'ValueError: If using all scalar values,
you must pass an index' when the SEC API returns an unexpected response
format (e.g., flat dict instead of nested dict of dicts).

Changes:
- get_all_companies: validate response before DataFrame creation,
  use from_dict(orient='index') instead of DataFrame().transpose(),
  check column count matches expected fields
- cik_map fetcher: raise proper OpenBBError when symbol not found
  instead of returning empty dict that passes truthiness checks

* run black

---------

Co-authored-by: JasonOA888 <JasonOA888@users.noreply.github.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2026-04-01 05:11:25 +00:00
..
…

Providers

In this folder you can find the providers that were created or are supported by OpenBB.

Every provider is located within a directory, with the following structure:

openbb_platform
└───providers
    └───<provider_name>
        |   README.md
        │   pyproject.toml
        │   poetry.lock
        |───tests
        └───openbb_<provider_name>
            │   __init__.py
            |───models
            |   |───<some model>.py
            |   └───...
            └───utils
                |───<some helper>.py
                └───...

The models define the data structures that are used to query the provider endpoints and store the response data.

See CONTRIBUTING file for more details