mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-24 18:22:43 +00:00
* Linting * added extra params and file cleanup in yfinance * `yfinance` Fetcher refactored * `cboe` Fetcher refactored, pydocstyle pass and cleanup * `yfinance` Fetcher cleanup and pydocstyle pass * `cboe` Fetcher cleanup * ruff + black * Linting * Fetcher cleanup and typing, bug fixes Co-authored-by: montezdesousa * Fix CPI * Fix CBOE typing * Fix yfinance typing * MyPy improvements * remove pass * property reorder * update get_data_many to return raw data and refactor treasury rates * refactor stocksplits * stockquote * change data one and stock peers * stock ownership * stock news * stock multiples * insider trading * stock eod * share stats * sec fillings * risk premium * revenue business line * revenue geographic * price target * black * treasury rates descriptions * more descriptions * remove The from descriptions * remove The from descriptions * price target consensus * polygon forex pairs * fix `Annotated is not defined` in static files * cboe Fetcher relisted data and pyproject cleanup * major indices eod * yfinance relisted data * major indixes const * key metrics * key executive * institutional ownership * forgot futures curve * income statement * income statement growth * remove unecessary var * black * rename var * change generic var names * rename abstract fetcher inner properties * remove unused provider helpers * add class description * import from ParamSpec regardless of version * specific imports hub service & ruff * remove useless inspect import * update comment * remove mypy comment * fmp Fetcher refactor, pydocstyle pass and cleanup * ruff * query.Dict to query.dict and set dates to 1 year diff * polygon date interval is 1 year * typing * mypy --------- Co-authored-by: Pratyush Shukla <ps4534@nyu.edu> Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Providers
Supported Providers
All currently supported providers are listed below.
| Provider | URL |
|---|---|
| FMP | https://financialmodelingprep.com/ |
| Polygon | https://polygon.io/ |
| Benzinga | https://www.benzinga.com/ |
| FRED | https://fred.stlouisfed.org/ |
Default Provider Configuration
To configure the default providers for each route, edit the .openbb_sdk/user_settings.json file in your home directory using the following template:
{
"defaults": {
"routes": {
"/stocks/load": {
"provider": "fmp"
},
"/stocks/fa/balance": {
"provider": "polygon"
},
...
}
}
}
Provider Information
Every provider is located within a directory, with the following structure:
openbb_sdk
└───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.