Treasury Rates
Implementation details
Class names
Model name | Parameters class | Data class |
---|---|---|
TreasuryRates | TreasuryRatesQueryParams | TreasuryRatesData |
Import Statement
from openbb_core.provider.standard_models.treasury_rates import (
TreasuryRatesData,
TreasuryRatesQueryParams,
)
Parameters
- standard
- federal_reserve
- fmp
start_date
: Union[date, str]
Start date of the data, in YYYY-MM-DD format.
• Optional: True
end_date
: Union[date, str]
End date of the data, in YYYY-MM-DD format.
• Optional: True
start_date
: Union[date, str]
Start date of the data, in YYYY-MM-DD format.
• Optional: True
end_date
: Union[date, str]
End date of the data, in YYYY-MM-DD format.
• Optional: True
start_date
: Union[date, str]
Start date of the data, in YYYY-MM-DD format.
• Optional: True
end_date
: Union[date, str]
End date of the data, in YYYY-MM-DD format.
• Optional: True
Data
- standard
- federal_reserve
- fmp
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.
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.
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.