Rblpapi
Rblpapi copied to clipboard
Exchange Code
I can't figure out how to download the exchange code for trades using the getTicks function. Is this possible?
Thank you!
Currently, no. This package is constrained by the Bloomberg API itself, and its documentation is vague on what fields are available in tick data. There is nothing said about exchange code.
Possibly the field is available but undocumented. You could ask the help desk about this.
I need that too. I asked for help in Bloomberg help desk for C++ they did not provide any support for that. Also, documentation is poor. In the other hand, Excel can provide that data with formula below.
=BDH("UC1 Curncy","Trade","2021-05-27 00:00:00","2021-05-27 23:59:59","IntrRw=true","BrkrCodes=S","Price=S","Type=H","Headers=Y","cols=5;rows=16671")
The parameter in the API is includeExchangeCodes
, but this doesn't seem to be exposed yet in the getTicks
function.
This is the request diagram from the official docs
This is the response diagram from the official docs