Independent client for Bloomberg data workflows. Current version 1.2.1, supports Python 3.10-3.14. Releases follow semantic versioning with frequent minor/patch updates. Provides pandas- and Arrow-native wrappers around Bloomberg's data services (historical, reference, tick, BQL, etc.) without requiring Bloomberg Terminal GUI.
pip install xbbgVerified import paths — ran on the pinned version, not inferred.
Fetch historical closing prices for Apple. Requires Bloomberg terminal or Bloomberg Server API (SAPI) running with necessary subscriptions.
Use 'from xbbg import blp' and call blp.bdh(...).
Always provide full Bloomberg ticker: 'TSLA US Equity', 'EURUSD Curncy', 'SPX Index'.
Use Python xbbg directly or the JavaScript/NAPI bindings (js-xbbg, napi-xbbg).
Set pivot='on' to get ticker-column format, or handle MultiIndex appropriately.
Run 'pip install blpapi' and ensure Bloomberg services (bbcomm) are available.