Description Usage Arguments Value See Also Examples
Retrieves equity historical book data from Bloomberg. Books include 'key stats', 'income statement', 'balance sheet', 'cash flow statement' and 'ratios'.
1  | BBG_equity_book(book, tickers, start, end, verbose = T, ...)
 | 
book | 
 a scalar chatacter vector, 'key stats', 'income statement', 'balance sheet', 'cash flow statement' or 'ratios'.  | 
tickers | 
 a chatacter vector. Specifies the Bloomberg equity tickers to query data for.  | 
start | 
 a scalar character vector. Specifies the starting date for the query in the following format: 'yyyy-mm-dd'.  | 
end | 
 a scalar character vector. Specifies the end date for the query in the following format: 'yyyy-mm-dd'.  | 
verbose | 
 a logical scalar vector. Should progression messages be printed? Defaults to TRUE.  | 
... | 
 optional parameters to pass to the bdh function from the
Rblpapi package used
for the query (  | 
An S4 object of class EquityKS (book = 'key stats'),
EquityIS (book = 'income statement'), \linkS4classEquityBS
(book = 'balance sheet'), EquityCF
(book = 'cash flow statement'), EquityRatios (book = 'ratios').
The fields dataset in the BBGsymbols package (finRes suite) for details on the Bloomnerg fields used here.
Helper datasets in the fewISOs and GICS packages (finRes suite).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24  | ## Not run: 
    BBG_KS <- BBG_equity_books(book = 'key stats',
      tickers = c("BP/ LN Equity", "WEIR LN Equity"),
      start = "2000-01-01", end = as.character(Sys.Date()))
    BBG_PL<- BBG_equity_books(book = 'income statement',
      tickers = c("BP/ LN Equity", "WEIR LN Equity"),
      start = "2000-01-01", end = as.character(Sys.Date()))
    BBG_BS <- BBG_equity_books(book = 'balance sheet',
      tickers = c("BP/ LN Equity", "WEIR LN Equity"),
      start = "2000-01-01", end = as.character(Sys.Date()))
    BBG_CF <- BBG_equity_books(book = 'cash flow statement',
      tickers = c("BP/ LN Equity", "WEIR LN Equity"),
      start = "2000-01-01", end = as.character(Sys.Date()))
    BBG_R <- BBG_equity_books(book = 'ratios',
      tickers = c("BP/ LN Equity", "WEIR LN Equity"),
      start = "2000-01-01", end = as.character(Sys.Date()))
  
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.