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
- standard
- fred
Name | Type | Description | Default | Optional |
---|---|---|---|---|
start_date | Union[date, str] | Start date of the data, in YYYY-MM-DD format. | None | True |
end_date | Union[date, str] | End date of the data, in YYYY-MM-DD format. | None | True |
index_type | Literal['aaa', 'baa'] | The type of series. | aaa | True |
Name | Type | Description | Default | Optional |
---|---|---|---|---|
start_date | Union[date, str] | Start date of the data, in YYYY-MM-DD format. | None | True |
end_date | Union[date, str] | End date of the data, in YYYY-MM-DD format. | None | True |
index_type | Literal['aaa', 'baa'] | The type of series. | aaa | True |
spread | Literal['treasury', 'fed_funds'] | The type of spread. | None | True |
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
- standard
- fred
Name | Type | Description |
---|---|---|
date | Union[date, str] | The date of the data. |
rate | float | Moody Corporate Bond Index Rate. |
Name | Type | Description |
---|---|---|
date | Union[date, str] | The date of the data. |
rate | float | Moody Corporate Bond Index Rate. |