xbbg
Independent client for Bloomberg-connected data workflows
Decision gist · record as of 2026-08-14
Yes, if you have Bloomberg access and need more than a basic bdp wrapper. xbbg is actively maintained, has no known vulnerabilities, and is built for workflows that scale from simple requests to streaming, async, and non-pandas data pipelines. The Rust engine and Arrow-shaped output are advantages over pure-Python alternatives. Install friction is moderate due to compiled wheels, but the dependency footprint is lean without blpapi as a hard requirement.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires authorized Bloomberg environment (Terminal/DAPI, SAPI/B-PIPE, or ZFP) and Bloomberg's shared runtime library (blpapi3_64.dll on Windows, libblpapi3_64.so on macOS/Linux).
- Linux wheels require glibc ≥ 2.28.
- Medium install friction due to compiled wheels for multiple Python versions (3.10–3.14) and platforms, but no direct blpapi dependency required.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most financial workflows.
last release 2026-08-07 (7 days) · last repo commit 2026-08-14 · 759 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 111,601 downloads/mo, #12,409 on PyPI
Alternatives
Verify before relying
pip install xbbg
from xbbg import blp
prices = blp.bdp(["AAPL US Equity", "MSFT US Equity"], "PX_LAST")
hist = blp.bdh("SPX Index", "PX_LAST", "2024-01-01", "2024-12-31")- Whether the Rust engine's performance advantage over pure-Python alternatives is material for typical workflows
- Whether async worker pools and isolated subscription sessions are production-tested in high-frequency scenarios
- Whether the field cache and testing helpers are documented and stable for integration testing
What it is and what it does
xbbg is an independent Bloomberg client that wraps Bloomberg's DAPI/SAPI/ZFP services with a Rust-backed engine, providing Python helpers for common request patterns (reference data, historical data, intraday bars, ticks, BQL, equity screening) plus async support and multiple output backends. It targets workflows that grow beyond simple one-off requests into streaming subscriptions, managed Bloomberg environments, and non-pandas data pipelines.
The package requires you to bring your own authorized Bloomberg access and manages the connection, request parsing, and data movement through a shared Rust engine. It supports sync and async APIs, outputs to Narwhals, native Arrow, PyArrow, pandas, Polars, DuckDB, and related libraries, and includes typed errors, diagnostics, and field lookup helpers. Configuration covers DAPI, SAPI/B-PIPE, ZFP, TLS, failover hosts, and SOCKS5.
Use it for
- Fetch reference data (prices, fundamentals, identifiers) for multiple securities in a single call with Bloomberg-style overrides.
- Retrieve historical time series and intraday bars/ticks for backtesting or real-time analysis workflows.
- Run BQL queries, equity screens, and constituent lookups for portfolio construction and monitoring.
- Build async worker pools for concurrent Bloomberg requests in high-throughput data pipelines.
- Output Bloomberg data directly to Polars, DuckDB, or Arrow formats without pandas as an intermediate step.
- Configure and connect to managed Bloomberg environments (B-PIPE, ZFP, TLS) with automatic failover and diagnostics.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you have Bloomberg access and need more than a basic bdp wrapper.
xbbg is actively maintained, has no known vulnerabilities, and is built for workflows that scale from simple requests to streaming, async, and non-pandas data pipelines. The Rust engine and Arrow-shaped output are advantages over pure-Python alternatives. Install friction is moderate due to compiled wheels, but the dependency footprint is lean without blpapi as a hard requirement.
Install
xbbg on PyPI
Before you install
Medium install friction due to compiled wheels for multiple Python versions (3.10–3.14) and platforms, but no direct blpapi dependency required. Active maintenance with a release 7 days ago and 759 repository stars.
Requires authorized Bloomberg environment (Terminal/DAPI, SAPI/B-PIPE, or ZFP) and Bloomberg's shared runtime library (blpapi3_64.dll on Windows, libblpapi3_64.so on macOS/Linux). Linux wheels require glibc ≥ 2.28.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most financial workflows.
Quickstart
pip install xbbg
from xbbg import blp
prices = blp.bdp(["AAPL US Equity", "MSFT US Equity"], "PX_LAST")
hist = blp.bdh("SPX Index", "PX_LAST", "2024-01-01", "2024-12-31")
Verify before relying
- Whether the Rust engine's performance advantage over pure-Python alternatives is material for typical workflows
- Whether async worker pools and isolated subscription sessions are production-tested in high-frequency scenarios
- Whether the field cache and testing helpers are documented and stable for integration testing
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <3.15,>=3.10 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | 1 packagenarwhals |
| Maintenance | Actively maintained 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 111,601 / month, #12,409 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: Financial and Insurance IndustryIntended Audience :: Science/ResearchOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: RustTopic :: Office/Business :: FinancialTopic :: Office/Business :: Financial :: InvestmentTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: xbbg-1.4.6-cp310-cp310-macosx_11_0_universal2.whl; xbbg-1.4.6-cp310-cp310-manylinux_2_28_x86_64.whl; xbbg-1.4.6-cp310-cp310-win_amd64.whl; xbbg-1.4.6-cp311-cp311-macosx_11_0_universal2.whl; xbbg-1.4.6-cp311-cp311-manylinux_2_28_x86_64.whl; xbbg-1.4.6-cp311-cp311-win_amd64.whl; xbbg-1.4.6-cp312-cp312-macosx_11_0_universal2.whl; xbbg-1.4.6-cp312-cp312-manylinux_2_28_x86_64.whl; xbbg-1.4.6-cp312-cp312-win_amd64.whl; xbbg-1.4.6-cp313-cp313-macosx_11_0_universal2.whl; xbbg-1.4.6-cp313-cp313-manylinux_2_28_x86_64.whl; xbbg-1.4.6-cp313-cp313-win_amd64.whl; xbbg-1.4.6-cp314-cp314-macosx_11_0_universal2.whl; xbbg-1.4.6-cp314-cp314-manylinux_2_28_x86_64.whl; xbbg-1.4.6-cp314-cp314-win_amd64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “bloomberg data api client”
- xbbgxbbg is a Bloomberg client for Python that provides high-level…
- lseg-dataClient library for accessing LSEG Data Platform financial data…
- mixpeekMixpeek is an auto-generated OpenAPI client library for accessing the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also lseg-data · openbb-equity · yahooquery · openbb-etf · yfinance · databento-dbn · efinance · openbb · fastexcel · polars-runtime-64