blp icon indicating copy to clipboard operation
blp copied to clipboard

bsrch

Open gioxc88 opened this issue 2 years ago • 5 comments

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 <GO>?

many thanks Gio

gioxc88 avatar Apr 14 '22 07:04 gioxc88

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 https://github.com/matthewgilbert/pdblp/issues/68. Open to PRs but I have no plans to implement this in the immediate future.

matthewgilbert avatar Apr 15 '22 02:04 matthewgilbert

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

gioxc88 avatar Apr 15 '22 02:04 gioxc88

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 avatar Apr 15 '22 13:04 matthewgilbert

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?

heyarn01d avatar Aug 08 '23 13:08 heyarn01d

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)
        """
    )

MarekOzana avatar Feb 19 '24 15:02 MarekOzana