bsrch: Run 'Bloomberg SRCH' Queries

View source: R/bsrch.R

bsrchR Documentation

Run 'Bloomberg SRCH' Queries

Description

This function uses the Bloomberg API to retrieve 'bsrcb' (Bloomberg SRCH Data) queries

Usage

bsrch(domain, limit = "", verbose = FALSE, con = defaultConnection())

Arguments

domain

A character string with the name of the domain to execute. It can be a user defined SRCH screen, commodity screen or one of the variety of Bloomberg examples. All domains are in the format <domain>:<search_name>.

limit

A character string containing a value by which to limit the search length – NOT YET IMPLEMENTED

verbose

A boolean indicating whether verbose operation is desired, defaults to ‘FALSE’.

con

A connection object as created by a blpConnect call, and retrieved via the internal function defaultConnection.

Value

A data frame object with the requested SRCH data.

Note

There are two main domains used for bsrch. The COMDTY domain requires additional parameters and is not supported. The FI domain works on user-defined searches accessed via SRCH.

Author(s)

Morgan Williams and Dirk Eddelbuettel

Examples

## Not run: 
head(bsrch("FI:SRCHEX.@CLOSUB"), 20)

## End(Not run)

Rblpapi documentation built on Sept. 30, 2024, 5:08 p.m.