Skip to main content

futures

Get futures data.

Source Code: [link]

openbb.economy.futures(source: Any = "WSJ", future_type: str = "Indices")

Parameters

NameTypeDescriptionDefaultOptional
sourcestrData source for futures data. From the following: WSJ, FinvizWSJTrue
future_typestr(Finviz only) Future type to get. Can be: Indices, Energy, Metals, Meats, Grains, Softs, Bonds, Currencies.IndicesTrue

Returns

TypeDescription
pd.DataFrameDataframe of futures data.

Examples

from openbb_terminal.sdk import openbb
wsj_futures = openbb.economy.futures()
To sort by the largest percent change:
futures_sorted = openbb.economy.futures().sort_values(by="%Chg", ascending=False)
FinViz provides different options for future types.  We can get Meats with the following command:
meat_futures = openbb.economy.futures(source="Finviz", future_type="Meats")