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

bsrch #13

Open
gioxc88 opened this issue Apr 14, 2022 · 5 comments
Open

bsrch #13

gioxc88 opened this issue Apr 14, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@gioxc88
Copy link

gioxc88 commented Apr 14, 2022

Hello and thanks for the new release
Is there no support for bsrch?
Could you eventually give some hint on how to use the blpapi directly to retrieve isins from SRCH ?

many thanks
Gio

@matthewgilbert
Copy link
Owner

This could be added to the BlpQuery class in a similar way to how bds and bdh are implemented. The relevant service endpoint that is wrapped is ExcelGetGridRequest. There is a discussion of the schema layout here matthewgilbert/pdblp#68. Open to PRs but I have no plans to implement this in the immediate future.

@gioxc88
Copy link
Author

gioxc88 commented Apr 15, 2022

thanks for the answer,
can I ask in your opinion between blp and pdblp which one is more "mature" to use?
Thanks

@matthewgilbert
Copy link
Owner

blp is a much better architected design than pdblp as discussed here https://github.com/matthewgilbert/blp#about. That being said neither is under active development by me at this time. It would be much easier to subclass blp and add new services (or submit an issue and PR for the feature you want)

@matthewgilbert matthewgilbert added the enhancement New feature or request label May 28, 2022
@heyarn01d
Copy link

Would you be able to provide any guidance on how to implement, what was discussed here https://github.com/matthewgilbert/pdblp/issues/68 into the latest version of blp?

@MarekOzana
Copy link

There is no need to implement bsrch since one can obtain SRCH results using blp.BlpQuery().bql(). For instance, the code below retrieves all ISINs for CoCo bonds by invoking the saved search @CoCo (one of example SRCHs in Bloomberg):

from blp import blp

with blp.BlpQuery() as bq:
    data = bq.bql(
        """
        for(screenresults(type=SRCH, screen_name='@COCO'))
        get(id_isin)
        """
    )

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

No branches or pull requests

4 participants