Skip to content

Examples in bsrch don't work #356

Description

@johnlaing

As noted by @mtkerbeR in #355

library(Rblpapi)
blpConnect()
bsrch("COMDTY:NGFLOW", verbose=TRUE)
#> Sending Request: ExcelGetGridRequest = { Domain = "COMDTY:NGFLOW" }
#> Processing Response
#> GridResponse = {
#>     NumOfFields = 0
#>     NumOfRecords = 0
#>     ColumnTitles[] = {
#>     }
#>     DataRecords[] = {
#>     }
#>     ReachMax = false
#>     Error = "The domain entered: COMDTY:NGFLOW is not valid."
#>     SequenceNumber = 0
#> }
#> 0 records returned
#> Returned columns:
#> ColumnTitles[] = {
#> }
#> Columns converted to C++ vector
#> 0 Rows expected
#> Dataframe mit 0 Spalten und 0 Zeilen

And with further digging also from Michael:
After some research on this, it seems that there are two main domains used for function bsrch:

  1. COMDTY:
    All examples I found in this category (i.e. bsrch("COMDTY:Weather") and bsrch("COMDTY:SHIP")) need additional parameters. According to Bloomberg Excel Example Sheet: "BSRCH allows you to download vessel data dynamically. Searches can be constructed by selecting parameters for the INPUT and OUTPUT preceded by COMDTY:SHIP".
    But additional parameters are currently not implemented for function Rblpapi::bsrch.

  2. FI:
    According to Bloomberg Excel Help: "You can use BSRCH to import the results of a saved search from the Fixed Income Search (SRCH) function, so you can analyze the list of bonds or loans in Excel."

Hence a solution could be to have:

  • a unit-test using an option, e.g. rblpapi_test_srch defined by the user running the unit tests
  • no examples for function bsrch as the name is user-specific (analogous to function getPortfolio)
  • maybe add a sentence how to construct fixed income searches (as this seems to be the main use-case now)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions