Bloomberg Query Language (BQL)

What is BQL

API based on normalised, curated data, allowing you to perform custom calculations in the Bloomberg cloud. It can perform data processing in the query to partially replace the function of Excel.

  • consolidate fields to make custom fields.

  • reduce the number of tickers you need to use (for example, study sectors).

  • functions to aggregate or group fields (such as average or sum).

Why BQL

In this manner, it saves query data.

How to use BQL

BQL Builder ; BQL and BQL.Query.

BQL Format

# Comparison: Ability to extend query points, apply formula, override data items

=BDP("AAPL US Equity", "PX_LAST")
=BDP("AAPL US Equity", "VOLUME")


=BQL("AAPL US Equity", "PX_LAST, PX_VOLUME")
=BQL("AAPL US Equity", "PX_LAST*100/PX_VOLUME")
=BQL("APPL US Equity", "PX_LAST(CURRENCY=EUR)*100/PX_VOLUME")

BQL.Query

  • let: Define some variables to use below (optional)

  • get: What do you want to know?

  • for: Who do you want to know about?

Data Type Example

single-point data

time-series data

Actuals, Estimates, Guidance

Calendarization of financial reporting calendar

blended data

Blended Trailing

latest-12-month period (LTM): default for FA_PERIOD_TYPE parameter

Point-in-time data

Get Support

For a detailed overview of the Bloomberg Query Language syntax run HELP BQLX <GO> on the Bloomberg Terminal.

For a detailed overview of the BQL Fundamentals parameters, parameter default values and available parameter inputs consult the BQL Fundamentals Technical Documentation in the Brochures section on HELP BQLX <GO>.

For templates in Excel powered by BQL, run XLTP BQL <GO>.

Last updated

Was this helpful?