Skip to content
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

question | getBars #312

Open
lz1nwm opened this issue Jul 23, 2020 · 13 comments
Open

question | getBars #312

lz1nwm opened this issue Jul 23, 2020 · 13 comments

Comments

@lz1nwm
Copy link

lz1nwm commented Jul 23, 2020

How to instruct getBars() to get yields instead of prices for FI instruments?

@eddelbuettel
Copy link
Member

You most likely "simply" want to retrieve a different column of data rather than PRICE. It should be entirely under the control of your query, and Rblpapi will faithfully send it off and get you the results. What you put into the query is your part. Consult Bloomberg help for assistance.

@lz1nwm
Copy link
Author

lz1nwm commented Jul 23, 2020

ok... but could you please be more specific: which argument should be changed security=, options= or something else?

@johnlaing
Copy link
Contributor

I'm not sure this is possible for getBars, since there is no field specified. I'd be curious to hear a response from the helpdesk, but they've been a bit less than helpful recently.

Alternatively you could use bdp to convert prices to yield, but for any historical data you'll have to tweak the settlement date.

@eddelbuettel
Copy link
Member

Sorry, my bad. Forget the context of getBars(). Please ignore.

General context holds though. Rblpapi will bring you what is offered. Bloomberg is generally somewhat nebulous about which fields are there. For derived quantities like yield they may not be available at all resolutions, conventions, ... etc.

@lz1nwm
Copy link
Author

lz1nwm commented Jul 23, 2020

Helpdesk said that they don't support programming languages...

@johnlaing
Copy link
Contributor

Yeah, that's been the official line last few times I've gone in. Unfortunate, really.

@entropy43
Copy link

entropy43 commented Jul 23, 2020

I would first check out FLDS on the terminal and find / check the correct API call for the security you want yield for.

Once you've done that, then go to the helpdesk and ask them to help you construct the correct Excel API call.

From there, you should be able to back out from the Excel API code to the correct syntax and options for bdh or getBars or whatever.

@entropy43
Copy link

If you get stuck, reply here and I will do my best to help you figure it out.

@entropy43
Copy link

also @eddelbuttel / @johnlaing I think it would be good to have some examples of 'non-standard' queries for newcomers to refer to in the docs. I'm happy to do this.

@johnlaing
Copy link
Contributor

Always in favor of more extensive documentation via examples. Feel free to open a separate issue if you'd like to take that on.

@wmorgan85
Copy link
Contributor

If I remember rightly intraday bars will only return yield for yield quoted securities. In BDH there is a QuoteType parameter which accepts price/yield. There will be an equivalent in the v3 signature. Apologies for being vague but it has been a year since I left BBG (where I built some of the API functionality)

@betomann
Copy link

also @eddelbuttel / @johnlaing I think it would be good to have some examples of 'non-standard' queries for newcomers to refer to in the docs. I'm happy to do this.

Hi. 1st. thanks very much @eddelbuettel @johnlaing and @armstrtw for developing such a cool package. I'm quite new using it and I'm currently trying to consult intraday fixed-income yields. Is this possible? Please pardon me whether I missed something above.

@entropy43
Copy link

Again, if you can construct the query in the Excel API then, typically, you can construct it in Rblpapi

Get the helpdesk to solve your query in Excel first. Then try pasting what they give back to you here and someone may try to help you translate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants