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 Options #260

Open
jackwelder opened this issue Feb 1, 2018 · 10 comments
Open

BSRCH Options #260

jackwelder opened this issue Feb 1, 2018 · 10 comments

Comments

@jackwelder
Copy link

Does the BSRCH command support options as in Excel? Looking to run the following query: =BSRCH("BI:TPD","BIKEY=WAC_UNIT_BY_NDC11","BIARG0=378395205") in R and pull into data frame object. Please advise - thanks!

@johnlaing
Copy link
Contributor

This does not seem to be implemented currently. I actually can't even find documentation for this corner of the API. The function was written by @wmorgan85 , maybe he can point us in the right direction?

@jackwelder
Copy link
Author

@eddelbuettel please let us know if you have any additional clarity on this item as well - thank you i

@eddelbuettel
Copy link
Member

I have nothing to add here. We often get asked to replicate some obscure Excel Bbg function. That generally reveals a misunderstand of what the API is against which we code, and how the Excel plugin is seen simply have some extra bells and whistles---that are generally not available to us. Sorry.

@gsmccomas
Copy link

gsmccomas commented Jun 25, 2019

At the risk of being annoying, I'm going to +1 this request. Bloomberg in a few instances has been increasingly using the bsrch function to query non-tickerized content. A great deal of their weather data is accessed through bsrch with a series of mandatory additional arguments

`library(Rblpapi)
#> Rblpapi version 0.3.10 using Blpapi headers 3.8.18.1 and run-time 3.8.18.1.
#> Please respect the Bloomberg licensing agreement and terms of service.

blpConnect()

bsrch("comdty:weather", verbose = TRUE)
#> Sending Request: ExcelGetGridRequest = { Domain = "comdty:weather" }
#> Processing Response
#> GridResponse = {
#> NumOfFields = 0
#> NumOfRecords = 0
#> ColumnTitles[] = {
#> }
#> DataRecords[] = {
#> DataRecords = {
#> DataFields[] = {
#> }
#> }
#> }
#> ReachMax = true
#> Error = "Missing the following mandatory input(s): LOCATION, MODEL"
#> SequenceNumber = 0
#> }
#> 0 records returned
#> Returned columns:
#> ColumnTitles[] = {
#> }
#> Columns converted to C++ vector
#> 0 Rows expected
#> data frame with 0 columns and 0 rows`

@eddelbuettel
Copy link
Member

Well we are busy professionals too, and it may take us a (long) time until our plates are empty with what we need to work on --- so if you need it badly maybe you can work on it, or find someone who can. Clean code contributions are always welcome, and we will help.

@gsmccomas
Copy link

@eddelbuettel I'll take a stab at it! I've been using Rblpapi for a long time and would be happy to contribute back to the code base. As an aside, python's pdblp also lacks this particular function. Thanks for the feedback!

@sergejlazuk
Copy link

Hi gsmccomas, any lack with extending BSRCH?
Would like to use it to get some model data...

@gsmccomas
Copy link

Hi @sergejlazuk I haven't made much progress on this I'm afraid. I've gotten about as far as looking over the API documentation, which is lamentably very spare on its detailing of BSRCH calls.

@sergejlazuk
Copy link

sergejlazuk commented Jul 5, 2019 via email

@gioxc88
Copy link

gioxc88 commented Apr 20, 2022

+1

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