mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-13 21:02:13 +00:00
* Adding versioning to docs --------- Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com> Co-authored-by: tehcoderer <me@tehcoderer.com>
865 B
Vendored
865 B
Vendored
title, description
| title | description |
|---|---|
| future | OpenBB SDK Function |
future
Get futures data. [Source: Finviz]
Source Code: [link]
openbb.economy.future(future_type: str = "Indices", sortby: str = "ticker", ascend: bool = False)
Parameters
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| future_type | str | From the following: Indices, Energy, Metals, Meats, Grains, Softs, Bonds, Currencies | Indices | True |
| sortby | str | Column to sort by | ticker | True |
| ascend | bool | Flag to sort in ascending order | False | True |
Returns
| Type | Description |
|---|---|
| pd.Dataframe | Indices, Energy, Metals, Meats, Grains, Softs, Bonds, Currencies |