mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 04:31:13 +00:00
* feat(platform): extend Country type standardization to equity screeners Apply standardized Country type from PR #7333 to additional providers. Changes: - YFinance equity_screener: Accept ISO codes, country names; convert to lowercase - Nasdaq equity_screener: Accept ISO codes, preserve multi-value functionality - Nasdaq economic_calendar: Accept ISO codes, convert to snake_case - Seeking Alpha calendar_earnings: Accept ISO codes for US/CA All validators normalize inputs to provider-expected formats while maintaining backward compatibility with existing inputs. Part of extending #6969 coverage across providers. --- Question for maintainers: Should this be extended to moderate (OECD, EconDB) or full (all providers) coverage? * refactor: apply review feedback - validate invalid country input instead of passing to API * refactor(yfinance): validate country input against supported list * dedupe nasdaq screener choices definitions * fix(nasdaq): use get_args() instead of __args__ for mypy compatibility --------- 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
│ 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