Skip to main content

treasury_rates

Government Treasury Rates.

Examples

from openbb import obb
obb.fixedincome.government.treasury_rates(provider='fmp')

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

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

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.