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

Data

NameTypeDescription
dateUnion[date, str]The date of the data.
week_4float4 week Treasury bills rate (secondary market).
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.