Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upgetBars - return value traded #89
Comments
|
Could you expand on what you want, what you get, why you think that is wrong and what you think we need to change? Sorry, but we are busy too and a random link doesn't quite get me to read pages of documentation especially when the function has so far worked just fine. |
|
Here is an example of what I currently get:
BBG's document which I linked before says there is an additional column called 'value' returned when using the C++ API. Could you pass that back in the result of getBars as an additional column called 'value'? So I would want something like:
You can't derive the 'value' column from existing columns. |
|
You'd have to work out how to do that by experimenting with the code and/or options to the call. I have no idea whether this is feasible -- sorry. |
|
On second look, maybe the 'value' component is in the bar returned in which case we could get it. If I (or somebody else ...) has time to test it ... |
|
Ok, that was easy. When I first wrote R> getBars("ES1 Index")
open high low close numEvents volume value
2015-11-09 14:58:00 2073.75 2075.00 2071.50 2072.00 7828 131827 273358112.0
2015-11-09 15:58:00 2072.00 2072.50 2071.75 2072.25 82 218 451734.5
2015-11-09 17:00:00 2072.25 2073.25 2069.75 2072.75 1159 4878 10104549.0
2015-11-09 18:00:00 2072.75 2075.00 2072.25 2073.25 1888 5910 12257721.0
2015-11-09 19:00:00 2073.25 2075.75 2071.00 2074.75 2008 7829 16231860.0
2015-11-09 20:00:00 2074.50 2075.75 2073.50 2075.50 1154 3834 7954627.0
R> I'll update the manual page and will then commit this. Thanks for the suggestion, and overall rather focused pointer to documentation -- appreciate it. |
|
Thank you, yes I also saw that misleading example somewhere. |
|
It is not misleading as simply incomplete / behind the full set of features are you discovered by reading the documentation. Yet these examples were highly valuable to get going. |
return value traded in getBars (closes #89)
|
@eddelbuettel I tried to install_github from the feature/bars-return-value branch and also master but received an error. Seems like the install script cannot find ../win/i386/blpHeaders.tar.gz. install_github is working for me for other repositories, so can I show you the error I am receiving? If so, let me know where to post this. |
|
Do you have a I rebuilt from the repo multiple times on multiple machines in the last few days... If that does not work for you I could push a tarball into one of the drat repos. |
|
Thanks for the quick enhancement @eddelbuettel. Seems I just needed to have curl installed and now it works as expected from install_github. Last time I installed from github was before it needed to grab the files from Rblp/blp. |
Could getBars support returning the value traded in the bar? It seems from the BBG API Developer's guide and looking in BBG's Excel tools that 'value' is supported.
Ref: BBG API Developer's guide, http://www.bloomberglabs.com/content/uploads/sites/2/2014/07/blpapi-developers-guide-2.54.pdf (see p. 177)