Bloomberg Query Language (BQL)
What is BQL
Why BQL
How to use BQL
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")# A list of tickers (separated by commas)
# The results of a screening
# Entire universes, filtered down to a subset.
Universe
=BQL("members('SPX Index')", "LAST(ZSCORE(DROPNA(PX_LAST(dates=range(-30d,0d)))))")
=BQL("filter(members('SPX Index'), LAST(ZSCORE(DROPNA(PX_LAST(dates=range(-30d,0d)))))>2)",
"LAST(ZSCORE(DROPNA(PX_LAST(dates=range(-30d,0d)))))")
BQL.Query
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
FA_PERIOD_TYPE parameter
Point-in-time data
Get Support
Last updated