mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-30 05:03:54 +00:00
get_international_portfolio filtered the frames and their metadata with different conditions when all_data_items_required is False. The frames kept the tables without "Not Reqd" in the description, which are the "Required" tables, and the metadata kept descriptions ending with "Not Reqd", which the ex-dividend files never do because their descriptions end with " - Ex-Dividends". So with dividends=True the call returned the "All 4 Data Items Required" returns under the "Not Reqd" description, and with dividends=False the metadata list was empty and transform_data raised IndexError. The documented example obb.famafrench.country_portfolio_returns(frequency="annual", measure="local", country="japan", dividends=False, all_data_items_required=False) fails with "[Unexpected Error] -> IndexError -> list index out of range". Filter both lists on "Not Reqd" in the description. Co-authored-by: dlee-bq <dlee@brightquery.com> Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Providers
In this folder you can find the providers that were created or are supported by OpenBB.
Recommended structure
Every provider is located within a directory, with the following structure:
openbb_platform
└───providers
└───<provider_name>
| README.md
│ pyproject.toml
│ uv.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