-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BQL implementation request #387
Comments
I think we might have to rely on community contributions here. |
I had some change to look at this - following is a short summary: While it looks not overly complicated to retrieve data from Bloomberg by copying and slightly modifying exisiting C++ code in functions In the simplest example:
this json-string can be reduced to essentially:
In a next step, one probably needs to save/parse the data, using e.g. some R-code/package like
The result of this function is a list of data.frames (one list element per entry/field in "get") where each entry in each data.frame is a string:
Those strings would have to be converted to the correct format (as specified in the json in field type, e.g. STRING, DOUBLE, DATE). From my point of view, this looks like a rather complex parsing tasks probably requiring additional dependencies - and there might probably be some edge cases to be considered and tested, given the variety of BQL-statements which could be used. |
The additional dependencies are not that much of a concern, really. What may be a little trickier is to 'guess' or 'infer' the resulting format when the |
@mtkerbeR could I ask you for a different favour though? I posted to the r-sig-finance list yesterday asking for help in testing a new build of |
@eddelbuettel |
Hello. It appears that it should now be possible to add BQL support to Rblpapi. The blp python library, which also relies on the C++ API, has managed to do so. Here's the specific commit: matthewgilbert/blp@700c280
I can confirm that it works in the Python library. I don't know how hard it would be, but it doesn't seem particularly complex. (I'm sadly not knowledgeable enough to propose a fix to Rblpapi myself.)
Thank you developers for sharing your code, it's been very helpful.
The text was updated successfully, but these errors were encountered: