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 maturity"3m"True
providerLiteral['fred']The provider to use for the query, by default None. If None, the provider specified in defaults is selected or 'fred' if there is no default."fred"True

Data​

NameTypeDescription
datedateThe date of the data.
ratefloatTreasuryConstantMaturity Rate.