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

start_date: date | str
Start date of the data, in YYYY-MM-DD format.

end_date: date | str
End date of the data, in YYYY-MM-DD format.

index_type: Literal['yield', 'yield_to_worst', 'total_return', 'oas']
Default: yield
The type of series. OAS is the option-adjusted spread. Default is yield.

Data

date: date | str
The date of the data.

symbol: str
Symbol representing the entity requested in the data.

value: float
Index values.