Skip to main content

Bond Indices


Implementation details​

Class names​

Model nameParameters classData class
BondIndicesBondIndicesQueryParamsBondIndicesData

Import Statement​

from openbb_core.provider.standard_models.bond_indices import (
BondIndicesData,
BondIndicesQueryParams,
)

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
index_typeLiteral['yield', 'yield_to_worst', 'total_return', 'oas']The type of series. OAS is the option-adjusted spread. Default is yield.yieldTrue
providerLiteral['fred']The provider to use, by default None. If None, the priority list configured in the settings is used. Default priority: fred.NoneTrue

Data​

NameTypeDescription
datedateThe date of the data.
symbolstrSymbol representing the entity requested in the data.
valuefloatIndex values.