US Yield Curve
Implementation details
Class names
| Model name | Parameters class | Data class |
|---|---|---|
USYieldCurve | USYieldCurveQueryParams | USYieldCurveData |
Import Statement
from openbb_core.provider.standard_models.us_yield_curve import (
USYieldCurveData,
USYieldCurveQueryParams,
)
Parameters
- standard
- fred
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| date | Union[date, str] | A specific date to get data for. Defaults to the most recent FRED entry. | None | True |
| inflation_adjusted | bool | Get inflation adjusted rates. | False | 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 |
|---|---|---|---|---|
| date | Union[date, str] | A specific date to get data for. Defaults to the most recent FRED entry. | None | True |
| inflation_adjusted | bool | Get inflation adjusted rates. | False | 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 |
Data
- standard
- fred
| Name | Type | Description |
|---|---|---|
| maturity | float | Maturity of the treasury rate in years. |
| rate | float | Associated rate given in decimal form (0.05 is 5%) |
| Name | Type | Description |
|---|---|---|
| maturity | float | Maturity of the treasury rate in years. |
| rate | float | Associated rate given in decimal form (0.05 is 5%) |