Skip to main content

moody

Deprecated

This endpoint is deprecated; use /fixedincome/bond_indices instead. Set category to us and index to seasoned_corporate. Deprecated in OpenBB Platform V4.2 to be removed in V4.5.

Moody Corporate Bond Index.

Moody's Aaa and Baa are investment bonds that acts as an index of the performance of all bonds given an Aaa or Baa rating by Moody's Investors Service respectively. These corporate bonds often are used in macroeconomics as an alternative to the federal ten-year Treasury Bill as an indicator of the interest rate.

Examples

from openbb import obb
obb.fixedincome.corporate.moody(provider='fred')
obb.fixedincome.corporate.moody(index_type='baa', provider='fred')

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['aaa', 'baa']The type of series.aaaTrue

Returns

OBBject
results : List[MoodyCorporateBondIndex]
Serializable results.

provider : Optional[Literal['fred']]
Provider name.

warnings : Optional[List[Warning_]]
List of warnings.

chart : Optional[Chart]
Chart object.

extra : Dict[str, Any]
Extra info.

Data

NameTypeDescription
dateUnion[date, str]The date of the data.
ratefloatMoody Corporate Bond Index Rate.