Skip to main content

Treasury Rates


Implementation details​

Class names​

Model nameParameters classData class
TreasuryRatesTreasuryRatesQueryParamsTreasuryRatesData

Import Statement​

from openbb_core.provider.standard_models.treasury_rates import (
TreasuryRatesData,
TreasuryRatesQueryParams,
)

Parameters​

NameTypeDescriptionDefaultOptional
start_dateUnion[date, str]Start date of the data, in YYYY-MM-DD format.NoneTrue
end_dateUnion[date, str]End date of the data, in YYYY-MM-DD format.NoneTrue
providerLiteral['fmp']The provider to use for the query, by default None. If None, the provider specified in defaults is selected or 'fmp' if there is no default."fmp"True

Data​

NameTypeDescription
datedateThe date of the data.
month_1float1 month treasury rate.
month_2float2 month treasury rate.
month_3float3 month treasury rate.
month_6float6 month treasury rate.
year_1float1 year treasury rate.
year_2float2 year treasury rate.
year_3float3 year treasury rate.
year_5float5 year treasury rate.
year_7float7 year treasury rate.
year_10float10 year treasury rate.
year_20float20 year treasury rate.
year_30float30 year treasury rate.