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

BChain function #259

Open
tryfonch opened this issue Jan 26, 2018 · 4 comments
Open

BChain function #259

tryfonch opened this issue Jan 26, 2018 · 4 comments

Comments

@tryfonch
Copy link

Is there a way to implement the Excel's BChain Function?

@jan-pieter-L
Copy link

I agree that this would be very valuable. The BOND_CHAIN override that can currently still be used in the BDS function will soon beprecated meaning that it would become impossible to extract outstanding bonds for an equity.

@eddelbuettel
Copy link
Member

Careful code contributions are always welcome!

@auenbauer
Copy link

The following code works for me to get all bonds by equity ticker. Do I understand jan-pieter correctly that this will no longer work in the future? Why not?

bds("ETP US Equity", "BOND_CHAIN")
Bloomberg Identifier Ticker/Coupon/Maturity
1 AQ017964 Corp ETP 6.250 01/01/01
2 EJ927720 Corp ETP 5.361 11/01/66
3 AS970828 Corp ETP 6.000 06/15/48
4 AS970843 Corp ETP 4.950 06/15/28
5 AQ019449 Corp ETP 6.625 01/01/01
...

What I did not find out yet was how and if I could get the LOANS by using BDPloans" with bdp by equity ticker and my understanding is that this works using the Rblpapi::bdp() function.

My understanding is that this works in Excel by using the formula:

=Bchain("IBM US Equity","LOANS","LN_ISSUE_STATUS == SIGNED AND LOAN_TYP == TERM")

@auenbauer
Copy link

auenbauer commented Sep 7, 2018

Sorry if that is off topic but I found in the documentation for the Excel Bchain function that it is based on the SRCH engine (as per April 2016) and that if a query can't be "structured" in SRCH, that you will not be able to pull it via Bchain either. So my conclusion is that a work around is to structure a SRCH and then pull the CUSIPs by Rblpapi::bsrch() and take it from there..

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

4 participants