Skip to main content
Version: v5

bond_indices

Bond Indices.

Examples​

from openbb import obb
obb.fred.fixedincome.bond_indices(provider='fred')

Parameters​

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

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

index_type: str | None
Default: yield
The type of series. OAS is the option-adjusted spread. Default is yield.

Choices
  • yield
  • yield_to_worst
  • total_return
  • oas

Returns​

results: FredBondIndices

Serializable results.

provider: str | None

Provider name.

warnings: Optional[list[Warning_]]

List of warnings.

chart: Optional[Chart]

Chart object.

extra: dict[str, Any]

Extra info.


Data​

date: date | str
The date of the data.