Open scfhath opened 6 years ago
@scfhath if you want to explore what options are available you can refer to the BLPAPI developer guide at https://data.bloomberglp.com/professional/sites/10/2017/03/BLPAPI-Core-Developer-Guide.pdf. In this case I think you may find what you are looking for around pp 92-93.
Hello,
I have been working with your excellent package, Rblpapi.
I have a couple of questions:
• I primarily work with economic data and find that for some series the dates don’t line up with the last calendar day of the month, to enable easy merging with other datasets. I have tried setting include.non.trading.days = TRUE but that does not seem to work. I have managed to fudge around this (see code below) but wondered whether there was something I could include in the bdh function, the equivalent of indexAt = ‘lastof’, that could make this easier?
• If setting a lower frequency of data, eg. Daily or weekly to quarterly, is there a way to pull the average of the quarter rather than automatically pulling the close price? I basically want to do the Excel equivalent of setting Period = CQ and Quote = A but can’t seem to make it work in R.
I essentially want to end up with an xts object, timestamped on the last calendar day of the quarter, with quarterly data (averaged over the quarter rather than the closing value)... Any direction would be greatly appreciated. Thank you!