Install
Install from PyPI, provide the Bloomberg C++ SDK runtime, then verify SDK detection with get_sdk_info().
Python public surface
xbbg for notebooks, pipelines, and services.Use familiar Bloomberg-style helpers from Python while transport, sessions, auth, async execution, middleware, and Arrow-native outputs run through the same Rust engine used by @xbbg/core.
Install from PyPI, provide the Bloomberg C++ SDK runtime, then verify SDK detection with get_sdk_info().
Use bdp, bdh, bds, intraday helpers, BQL/search helpers, subscriptions, or fixed-income workflows.
Return pandas, Polars, PyArrow, DuckDB, or Narwhals depending on the pipeline you already have.
Use a-prefixed async helpers, reusable sessions, request middleware, enterprise auth, TLS, ZFP, failover, SOCKS5, and SDK logging.
Many Python Bloomberg-data packages wrap Bloomberg's blpapi Python bindings directly. That can be enough for small scripts, but production workflows still have to decide where session lifecycle, event parsing, concurrency, diagnostics, middleware, enterprise connectivity, and output conversion live.
xbbg puts those concerns behind a native Rust/Arrow engine that integrates with the Bloomberg C/C++ SDK, manages sessions and worker pools, builds typed Arrow output, and exposes enterprise transports such as ZFP over leased lines, B-PIPE/SAPI auth, TLS, failover servers, SOCKS5, SDK logging, validation, request diagnostics, and request middleware.
| Family | Helpers | Use when |
|---|---|---|
| Reference / historical / bulk | bdp, bdh, bds, bdib, bdtick and async variants | Core market-data retrieval |
| Search and services | bql, beqs, bsrch, bqr, bflds, generic requests | Bloomberg service workflows beyond simple field pulls |
| Streaming | subscribe, asubscribe, streaming helpers | Realtime data with subscription diagnostics |
| Fixed income | bqr, bcurves, bgovts, yas, corporate_bonds, bond helpers | Quotes, curves, government securities, yield/risk analytics, and cashflows |
| Operations | configure, middleware management, logging, backend configuration | Production setup and observability |
xbbg includes request middleware for teams that need platform-wide controls around Bloomberg access. Middleware receives request context and environment snapshots, so one shared pipeline can add audit logging, request IDs, metrics, tracing, entitlement checks, policy enforcement, standardized error handling, and compliance hooks without wrapping every individual bdp(), bdh(), bql(), or streaming call.
xbbg is a Python ergonomic layer on top of a Rust engine backed by Bloomberg C/C++ SDK integration, with a matching Node.js surface on the same core. That distinction matters once a workflow grows beyond a single bdp() call.
blpapi is official but low-level: every application has to rebuild session startup, service opening, request construction, correlation IDs, event-loop parsing, error mapping, retries, logging, and dataframe conversion. xbbg keeps SDK access underneath while adding typed helpers, generic service requests, structured errors, async execution, and Arrow-native output.blp; it has no modern Requires-Python floor, depends on old pandas-era assumptions, and is not under active development.python>=3.6, mandatory pandas). xbbg moves transport and output handling into native Rust execution, reusable worker pools, Arrow output, enterprise transports, and broad blpapi workflow coverage.import xbbg
xbbg.configure(host='localhost', port=8194)
prices = xbbg.bdp(
['AAPL US Equity', 'MSFT US Equity'],
['PX_LAST', 'VOLUME'],
)Prefer the top-level helpers in these docs (xbbg.bdp(...), xbbg.configure(...)). If you are coming from the repository README, the module-style import remains supported too: from xbbg import blp and blp.bdp(...).
Open the public package page for xbbg.
Set up the package and Bloomberg runtime.
Make reference, historical, bulk, async, and fixed-income requests.
See every public export from the installed Python package.
Use curves, government securities, BQR, YAS, corporate bonds, and bond analytics.
Browse generated Python API docs.