Skip to main content

fred

Historical Fred Indices. Close values for selected Fred indices.

Example​

from openbb import obb
obb.index.fred(symbol="SPX", limit=100)

Parameters​

NameTypeDescriptionDefaultOptional
symbolUnion[str, List[str]]Symbol to get data for.False
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
limitintThe number of data entries to return.100True
providerLiteral['intrinio']The provider to use for the query, by default None. If None, the provider specified in defaults is selected or 'intrinio' if there is no default."intrinio"True

Returns​

OBBject
results : List[FredIndices]
Serializable results.

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

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

chart : Optional[Chart]
Chart object.

metadata: Optional[Metadata]
Metadata info about the command execution.

Data​

NameTypeDescription
datedateThe date of the data.
valuefloatValue of the index.