bpsmith / tia

Toolkit for integration and analysis
BSD 3-Clause "New" or "Revised" License
409 stars 163 forks source link

Is there a way to use BQL formula? #59

Open x829901 opened 3 years ago

x829901 commented 3 years ago

Bloomberg Query Language (BQL) is Bloomberg's new data API language. Is there a way to use tia to pull say the following formula?

=BQL("CCL US Equity","MAX_DRAWDOWN(Calc_interval=range(2020-01-01, 2020-07-01))")

rahul-iitd707 commented 3 years ago

I am also interested in using BQL functions via python. I'll appreciate if there is any support available. One example of a BQL function I am looking is as below: =BQL("EURUSD Curncy","dropna(rsi(dates=range(-1y, 0d), period=14))") Thank you in advance.