An unofficial insider's guide to learning BQL on BQuant

An unofficial insider's guide to learning BQL on BQuant

TL:DR An insight into the design of the user journey for learning the Bloomberg Query Language on BQuant, Bloomberg's quantitative analysis platform

In case you still haven't heard (where have you been?), BQL is the Bloomberg Query Language, an API that enables users to retrieve and analyze normalized, curated, and point-in-time Bloomberg data. With BQL, you can easily perform custom calculations directly in the Bloomberg Cloud and streamline arithmetic and statistical operations, filtering, grouping, scoring, and dates-based analysis. Synthesizing large amounts of data and extracting the exact information needed can be done through easy-to-learn syntax.

Whilst it's not the solution for every problem (if you need real time streaming Bloomberg data to drive a third party app, Server API might better suit your needs), the three big benefits of linked data, custom factor creation, and server-side data manipulation are undeniable to many. 

For the past six years, I led our team working with clients across the DACH region (Germany, Austria, Switzerland), introducing and teaching them how to use BQL, initially in Excel and then in Python. I kickstarted a monthly newsletter called the BQL Spotlight, which showcased workflow templates in Excel and garnered over 20,000+ readers (and still available on Bloomberg today). I coordinated and contributed to the core BQL reference documentation on BQLX<GO> such as BQL for Fixed Income/ESG/Funds in Excel and  ran user workshops, presented webinars and wrote articles on the topic for the Bloomberg Markets magazine.

No alt text provided for this image

A very lovely familiar sight

Over the years, we realised a few things...

  1. Our users are finance professionals, not technologists. Our users care about how BQL helps them achieve their objectives. We needed to tailor how we demoed BQL to how clients will use it in their workflows. For example, ESG analysts who want to build custom scores on their portfolio want to understand how companies are disclosing these metrics over time and what global coverage looks like.
  2. Users need a guided learning journey. As Financial APIs grow in popularity, our clients need to pick up new technical skills like working in Python on BQuant, our cloud-based analytics platform. We need to offer support for BQL in Python to help them leverage the full power of the technology at their hands.

As a result of realizing 1 and 2, we learned that our clients are at various stages in their journey to using BQL and we can work with them to help them get there.  When they do, they delight in writing queries and exploring new horizons.

No alt text provided for this image

A visual depiction of how it feels when you start to understand BQL

So how do we address this?

Over the period of a year, I initiated and coordinated our team's work to design a learning path for users to learn BQL in BQuant. It looked like this:

Introduction: A user must first understand the benefits of learning BQL for their everyday analysis to see the value of investing their time and energy to learn something new. A FI PM must see that they are able to screen their portfolio for the biggest movers in seconds vs half an hour. An Equity analyst must see how to generate new ideas in Chinese nanotech according to their own criteria in moments rather than a laboured process on terminal.

Beginner: Once they find their reason, the user must learn BQL from the basic stepping stones with material that's relevant to them. A fixed income user needs to learn about manipulating spread, yield and payment ranks. An equity user needs to understand how to break down analyst revisions and broker estimates. There's no point confusing the two.

Advanced: With the basic steps in hand, they are then able to continue on to learn advanced concepts such as grouping, ungrouping(!), rolling correlation and string manipulation to get what you need. Suddenly you're able to generate issuance analysis and dissect your data by ranking, deciles, sector relative percentiles.

Apply/Workflows: Now with a strong toolkit in hand, the user can combine these skills with Python widgets and Pandas to design their own apps for interactive analysis.

No alt text provided for this image

A colleague commented: is this a depiction of your day working from home? Sometimes...

The team and I started small. Mainly together with my colleague Ryo Nishizuka, I wrote the BQuant Basics series of webinars which showcased key workflows that BQL enables across different asset classes. These were well received and served as the cornerstones for Introduction. Next, we translated a training course for Fixed Income BQL from Excel into Python and taught this internally, recording and editing for many hours. We launched the course in Germany and tweaked the material following feedback.

Over the course of a year, we wrote the following documentation:

a) A curated guide to BQL functions in Python with examples rooted in finance

b) Step by step guides from beginners and advanced for Fixed Income, Equity, Funds, ESG and Macroeconomics.

With momentum behind us, I recruited some keen beans to help (shout out to Vikram Pappachan who wrote most of BQNT Equity and Anna Shkuratova who helped to write BQNT ESG with me). 

No alt text provided for this image

BQNT ESG, as of April 2022

Working with our developer advocate, Wes Heginbotham, and our engineering group, we made this material available for anyone with access to the BQuant platform. Firstly, by adding these projects to the starting index of a user's starter projects. Secondly, by allowing any user to open these projects by simply running a command on their Bloomberg Terminal such as BQNT FI<GO>, BQNT EQUITIES<GO>, BQNT FUNDS<GO>, BQNT ECO<GO> or BQNT ESG<GO>.

No alt text provided for this image

Every BQuant user's main repository for BQL Resources - try one of the shortcuts!

Finally, I coordinated a global workgroup (including Ryan Jazayeri in New York and Yves Tran in Singapore) to collect all of the key demo applications across the world and curate the best in class into these projects. We designed brochures in pdfs for each asset class to make it easy for our relationship teams to communicate the benefits of BQL in BQuant to our users across the world, and promoted it in training sessions around the world.

No alt text provided for this image

BQL for Portfolio SFDR alignment, Score analysis and other ESG workflows on show

Looking back, this was hundreds, if not thousands, of lines of code. The work is by no means perfect - I'm not a trained documentation writer, professional programmer, nor was I the product owner for either BQL or BQuant. Nevertheless, what it is, is a consistent and comprehensive piece of work, that is designed to give a user a way to learn and reference the intricacies of a brand new language. It is the condensing of over half a decades' experience and the culmination of a multi-year labour of love, writing in the middle of the night, to give users a way to learn from those before them to leverage the latest in technologies for their financial analysis. Since then:

  • The projects such as BQNT FI<GO> are some of the most used on the platform and form the foundation of every user's understanding of BQL on BQuant.
  • New releases are added to the projects with examples: see BQNT ESG for sustainable bonds analysis or BQNT FI for the upcoming release on analysing Axes data, with alerts available for updates via a dedicated newswire
  • The brochures are made available to all Bloomberg users on BQIQ<GO>, the homepage for BQuant.
  • New platforms such as BQNT Workflows<GO>, give users a summary of key workflows across the asset classes and link back to these projects for the deep dive

No alt text provided for this image

Check out BQNT Workflows, a new dashboard to highlight featured workflows using BQL and BQuant

If you've come this far, hopefully you've learned a thing or two about where to go to learn BQL in BQuant. This was an untold story that I felt deserved its moment of recognition. For further information, please speak to your friendly Bloomberg relationship team or BQuant specialist team.


To view or add a comment, sign in

More articles by Vincent Tong, CFA, ACSI

  • Should you still study the CFA Certificate in ESG Investing in 2022? (Part 2)

    Should you still study the CFA Certificate in ESG Investing in 2022? (Part 2)

    Last year, I wrote an article called “Should you study the CFA Certificate in ESG Investing?” to share the experience…

    21 Comments
  • A decade in Bloomberg

    A decade in Bloomberg

    Ten years. When I first started my professional career, I never thought I'd be at a company for a decade.

    29 Comments
  • Getting started with Azure: AZ-900

    Getting started with Azure: AZ-900

    Having recently embarked on my cloud journey with the AWS Cloud Practitioner and Solutions Architect Associate…

    10 Comments
  • Is there a place for big data and AI in Healthcare?

    Is there a place for big data and AI in Healthcare?

    At AWS Re:invent this year, one product in particular caught my eye: Amazon Healthlake. With a better half who works in…

  • Should you study the CFA Certificate in ESG Investing?

    Should you study the CFA Certificate in ESG Investing?

    For 2022: I've written a collection of questions and answers around the ESG Certificate, which you can find here…

    31 Comments
  • Using cloud analytics to bring big data analysis and transparency to ESG funds

    Using cloud analytics to bring big data analysis and transparency to ESG funds

    We did it again! I've always enjoyed writing about topics I'm interested in, be it African growth, Chinese bonds or ESG…

  • Who is going to come out top?

    Who is going to come out top?

    Earlier this month, we ran a session on analysing the upcoming US Election on BQuant, our interactive development…

    1 Comment
  • Speaking up against Racism

    Speaking up against Racism

    I have wondered in recent weeks if I have anything to say in the heated debate about race. If I have a place, or…

    1 Comment
  • ESG Investing on the Cloud

    ESG Investing on the Cloud

    Just in time for the sustainable finance week in New York this week (https://go.bloomberg.

    2 Comments
  • To: My 21 Year Old Self

    To: My 21 Year Old Self

    Last week, I was honoured to give the commencement speech for the young men and women graduating at my alma mater…

    9 Comments

Insights from the community

Others also viewed

Explore topics