Skip to content

JavaScript

The public JavaScript package in this monorepo is @xbbg/core.

@xbbg/core exposes the same Bloomberg session model and Rust-backed request engine used by the Python package, but in a Node.js-friendly shape with namespaces such as xbbg.blp and xbbg.ext.

Direct Node.js binding

Use the public npm package when you need Bloomberg access directly inside Node.js without wrapping the Python runtime.

Shared engine

Session configuration, authentication, transport, and Arrow-native data handling come from the shared Rust core.

Generated API reference

The @xbbg/core API reference in this section is generated from the published TypeScript surface so it stays aligned with the package.

  • Bloomberg request helpers for point-in-time, historical, bulk, intraday bar, tick, and subscription workflows
  • Structured EngineConfig support for host/port, ordered failover, auth, TLS, ZFP, SOCKS5, and recovery tuning
  • Public namespaces such as xbbg.blp and xbbg.ext for both core requests and higher-level helpers
  • Arrow-native tables and a generated TypeScript reference for the current package surface
import * as xbbg from '@xbbg/core';
xbbg.configure({ host: 'localhost', port: 8194 });
const hist = await xbbg.blp.abdh(
['AAPL US Equity'],
['PX_LAST'],
'2024-01-01',
'2024-01-31',
);
  • Installation — install @xbbg/core and understand how the native package is distributed
  • Package Map — compare the public Python and Node.js packages
  • Browse the @xbbg/core API section in the sidebar for the generated JavaScript reference