Skip to main content
Version: v5

series

Fetch BLS time series data by series identifier.

Examples​

from openbb import obb
# Fetch a single series by symbol from the BLS API.
obb.bls.series(provider='bls', symbol='CUUR0000SA0')
# Fetch multiple series with calculations enabled.
obb.bls.series(provider='bls', symbol='CUUR0000SA0,WPUFD4', calculations=True)

Parameters​

symbol: str | list[str]
Symbol to get data for. Multiple items allowed for provider(s): bls.

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.


Returns​

results: BlsSeries

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.

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

title: str | None
Title of the series.

value: float | None
Observation value for the symbol and date.