Skip to main content

Treasury Constant Maturity


Implementation details

Class names

Model nameParameters classData class
TreasuryConstantMaturityTreasuryConstantMaturityQueryParamsTreasuryConstantMaturityData

Import Statement

from openbb_core.provider.standard_models.tmc import (
TreasuryConstantMaturityData,
TreasuryConstantMaturityQueryParams,
)

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
maturityLiteral['3m', '2y']The maturity3mTrue

Data

NameTypeDescription
dateUnion[date, str]The date of the data.
ratefloatTreasuryConstantMaturity Rate.