Skip to main content
Version: v5

agricultural_exchange_rates

Get ERS agricultural exchange rates - real and nominal commodity trade-weighted exchange rate indexes and bilateral local-currency-per-USD rates, each pivoted to a wide layout with time in the rows and the commodity (index tables) or partner country (bilateral tables) in the columns.

Examples​

from openbb import obb
obb.usda.agricultural_exchange_rates(provider='usda')
# Get real bilateral exchange rates for North American partner countries.
obb.usda.agricultural_exchange_rates(provider='usda', table='real_bilateral_annual', region='North America')
# Get the monthly U.S.-import-weighted real trade-weighted index since 2020.
obb.usda.agricultural_exchange_rates(provider='usda', table='real_index_monthly', weights='U.S. suppliers (U.S. import weights)', start_year=2020)

Parameters​


Returns​

results: AgriculturalExchangeRates

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​