Sonia
Implementation details
Class names
| Model name | Parameters class | Data class |
|---|---|---|
SONIA | SONIAQueryParams | SONIAData |
Import Statement
from openbb_core.provider.standard_models.sonia_rates import (
SONIAData,
SONIAQueryParams,
)
Parameters
- standard
- fred
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| start_date | Union[date, str] | Start date of the data, in YYYY-MM-DD format. | None | True |
| end_date | Union[date, str] | End date of the data, in YYYY-MM-DD format. | None | True |
| provider | Literal['fred'] | The provider to use, by default None. If None, the priority list configured in the settings is used. Default priority: fred. | None | True |
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| start_date | Union[date, str] | Start date of the data, in YYYY-MM-DD format. | None | True |
| end_date | Union[date, str] | End date of the data, in YYYY-MM-DD format. | None | True |
| provider | Literal['fred'] | The provider to use, by default None. If None, the priority list configured in the settings is used. Default priority: fred. | None | True |
| parameter | Literal['rate', 'index', '10th_percentile', '25th_percentile', '75th_percentile', '90th_percentile', 'total_nominal_value'] | Period of SONIA rate. | rate | True |
Data
- standard
- fred
| Name | Type | Description |
|---|---|---|
| date | date | The date of the data. |
| rate | float | SONIA rate. |
| Name | Type | Description |
|---|---|---|
| date | date | The date of the data. |
| rate | float | SONIA rate. |