Skip to main content
Version: v5

agricultural_trade

Get the ERS U.S. agricultural trade data update - each table pivoted to a wide layout with the year and period in the rows and the trade direction, commodity, or trade partner spread into columns.

Examples​

from openbb import obb
obb.usda.agricultural_trade(provider='usda')
# Get the top export markets for corn, by volume.
obb.usda.agricultural_trade(table='top_export_markets', commodity='Corn', provider='usda')
# Get the monthly agricultural trade totals since 2020.
obb.usda.agricultural_trade(table='monthly', start_year=2020, provider='usda')

Parameters​


Returns​

results: UsAgriculturalTrade

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​