treasury_rates
Government Treasury Rates.
Examples
from openbb import obb
obb.fixedincome.government.treasury_rates(provider='fmp')
Parameters
- standard
- federal_reserve
- fmp
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 |
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 |
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 |
Returns
OBBject
results : List[TreasuryRates]
Serializable results.
provider : Optional[Literal['federal_reserve', 'fmp']]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
chart : Optional[Chart]
Chart object.
extra : Dict[str, Any]
Extra info.
Data
- standard
- federal_reserve
- fmp
Name | Type | Description |
---|---|---|
date | Union[date, str] | The date of the data. |
week_4 | float | 4 week Treasury bills rate (secondary market). |
month_1 | float | 1 month Treasury rate. |
month_2 | float | 2 month Treasury rate. |
month_3 | float | 3 month Treasury rate. |
month_6 | float | 6 month Treasury rate. |
year_1 | float | 1 year Treasury rate. |
year_2 | float | 2 year Treasury rate. |
year_3 | float | 3 year Treasury rate. |
year_5 | float | 5 year Treasury rate. |
year_7 | float | 7 year Treasury rate. |
year_10 | float | 10 year Treasury rate. |
year_20 | float | 20 year Treasury rate. |
year_30 | float | 30 year Treasury rate. |
Name | Type | Description |
---|---|---|
date | Union[date, str] | The date of the data. |
week_4 | float | 4 week Treasury bills rate (secondary market). |
month_1 | float | 1 month Treasury rate. |
month_2 | float | 2 month Treasury rate. |
month_3 | float | 3 month Treasury rate. |
month_6 | float | 6 month Treasury rate. |
year_1 | float | 1 year Treasury rate. |
year_2 | float | 2 year Treasury rate. |
year_3 | float | 3 year Treasury rate. |
year_5 | float | 5 year Treasury rate. |
year_7 | float | 7 year Treasury rate. |
year_10 | float | 10 year Treasury rate. |
year_20 | float | 20 year Treasury rate. |
year_30 | float | 30 year Treasury rate. |
Name | Type | Description |
---|---|---|
date | Union[date, str] | The date of the data. |
week_4 | float | 4 week Treasury bills rate (secondary market). |
month_1 | float | 1 month Treasury rate. |
month_2 | float | 2 month Treasury rate. |
month_3 | float | 3 month Treasury rate. |
month_6 | float | 6 month Treasury rate. |
year_1 | float | 1 year Treasury rate. |
year_2 | float | 2 year Treasury rate. |
year_3 | float | 3 year Treasury rate. |
year_5 | float | 5 year Treasury rate. |
year_7 | float | 7 year Treasury rate. |
year_10 | float | 10 year Treasury rate. |
year_20 | float | 20 year Treasury rate. |
year_30 | float | 30 year Treasury rate. |