skillfed

openbb-imf

https://datahelp.imf.org/knowledgebase/articles/630877-api

openbb-imf v2.1.3 86.7K downloads/30d#13,845 on PyPI
AGPL license AGPL-3.0-only Active released

What it is and what it does

openbb-imf is a provider extension that plugs IMF data access into the OpenBB platform's economy module. It wraps the IMF's SDMX API (which organizes data into dataflows like CPI, trade, and shipping metrics) and translates it into OpenBB's standard symbol-based query interface. Instead of learning IMF's dimension-based parameter model, users construct simple ticker-like symbols (e.g., `CPI::CP01`) and call familiar OpenBB endpoints like `obb.economy.indicators()` or `obb.economy.cpi()`.

The extension handles the heavy lifting: it fetches and caches IMF metadata, validates user inputs against IMF's constraints API, converts IMF codes into human-readable labels, and returns results with both data and series metadata. It also exposes utility endpoints for discovering available dataflows, indicators, and presentation tables, which the OpenBB Workspace UI uses to populate dropdown menus. The package depends on openbb-core, openbb-economy, openbb-platform-api, async-lru for caching, and defusedxml for safe XML parsing.

Use it for:

  • Retrieve CPI or inflation data for multiple countries and time periods using standardized symbol syntax without learning IMF's SDMX parameter model.
  • Access direction-of-trade or shipping chokepoint data through OpenBB's economy module as part of a broader economic analysis workflow.
  • Build a dashboard or research tool that queries IMF indicators programmatically, leveraging OpenBB Workspace UI integration for metadata discovery.
  • Combine IMF time series with other OpenBB providers in a single Python script for cross-source economic data analysis.
  • Explore available IMF dataflows and their dimensions via utility endpoints to understand what data is available before constructing queries.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides a provider extension for the OpenBB platform that exposes International Monetary Fund (IMF) data through standardized endpoints, handling SDMX API access to IMF dataflows with automatic metadata normalization and symbol-based querying.

Yes, if you are already using OpenBB and need IMF economic data. The extension integrates cleanly into the platform, has low install friction, and is actively maintained. However, the AGPL-3.0-only license requires that any code using this package (including derivative works) be open-sourced under the same license—a significant constraint for proprietary applications. If you are building closed-source software, you will need to either accept the license terms or find an alternative IMF data source.

Install

openbb-imf on PyPI

pip

pip install openbb-imf

uv

uv add openbb-imf

poetry

poetry add openbb-imf

Installing openbb-imf

Before you install

Low friction installation as a pure-Python wheel. Actively maintained with a recent release. Requires openbb-core and openbb-platform-api as runtime dependencies, which must be available in your environment.

License in practice

Licensed under AGPL-3.0-only, which requires that any modifications or derivative works using this package must also be released under the same license and have source code made available. This is a copyleft restriction suitable for open-source projects but may conflict with proprietary software strategies.

Quickstart

pip install openbb-imf
openbb-build

from openbb import obb
indicators = obb.economy.available_indicators(provider="imf", dataflows="CPI,PI")
data = obb.economy.indicators(provider="imf", symbol="CPI::CP01")

Requires Python 3.10 or later. The openbb-build command must be run after installation to generate static assets before using the provider.

Verify before relying

  • Whether openbb-core and openbb-platform-api are automatically installed or must be pre-configured separately.
  • Performance characteristics when querying large datasets or making many concurrent requests via async-lru.
  • Specific IMF data coverage limits or frequency update schedules not documented in the excerpt.

Package facts

License AGPL-3.0-only (agpl)
Python support supports the current Python release (<4,>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 5 — async-lru, defusedxml, openbb-core, openbb-economy, openbb-platform-api
Maintenance actively maintained — 80 days since the last release
First released
Downloads 86,656/month — #13,845 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: openbb_imf-2.1.3-py3-none-any.whl

License :: OSI Approved :: GNU Affero General Public License v3Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

IMF data provider for OpenBBinternational monetary fund API accesseconomic indicators IMFSDMX data integrationOpenBB economy extensionIMF CPI shipping trade datatime series economic data
imf-dataeconomic-indicatorsopenbb-extension

More Information Analysis packages