> library(RBloomberg) Loading required package: rJava > conn <- blpConnect(log.level = "finest") R version 2.11.1 (2010-05-31) rJava Version 0.8-7 RBloomberg Version 0.4-143 Java environment initialized successfully. Looking for most recent blpapi3.jar file... Bloomberg API Version 3.3.3.3 > > > security <- c("BKIR ID Equity") > field <- c("DVD_HIST") > > bds(conn, security, field)[1:5,] Declared Date Ex-Date Record Date Payable Date Dividend Amount 1 2009-11-04 2009-11-18 NA 2 2009-05-19 2009-05-27 NA 3 2008-11-13 2008-11-19 NA 4 2008-05-21 2008-05-28 2008-05-30 2008-07-23 0.250471 5 2007-11-14 2007-11-21 2007-11-23 2008-01-15 0.153843 Dividend Frequency Dividend Type 1 Suspend Discontinued 2 Semi-Anl Omitted 3 Semi-Anl Omitted 4 Semi-Anl Final 5 Semi-Anl Interim > > security <- "TYA Comdty" > field <- "FUT_DELIVERABLE_BONDS" > > bds(conn, security, field)[1:5,] Ticker, Coupon, Maturity of Deliverable Bonds Conversion Factor 1 T 1.875 08/31/17 Govt 0.7807 2 T 2.375 07/31/17 Govt 0.8072 3 T 2.5 06/30/17 Govt 0.8139 4 T 2.625 08/15/20 Govt 0.7583 5 T 2.75 02/15/19 Govt 0.7959 > > security <- "UKX Index" > field <- "INDX_MEMBERS" > > bds(conn, security, field)[1:5,] [1] "AAL LN" "ABF LN" "ABG LN" "ADM LN" "AGK LN" > > securities <- c("UKX Index", "SPX Index") > fields <- c("INDX_MEMBERS", "INDX_MEMBERS2", "INDX_MEMBERS3") > > bds(conn, securities, fields)[c(1:5, 350:355),] ticker Member.Ticker.and.Exchange.Code 1 UKX Index AAL LN 2 UKX Index ABF LN 3 UKX Index ABG LN 4 UKX Index ADM LN 5 UKX Index AGK LN 350 SPX Index JWN UN 351 SPX Index K UN 352 SPX Index KEY UN 353 SPX Index KFT UN 354 SPX Index KG UN 355 SPX Index KIM UN > > > > proc.time() user system elapsed 1.73 0.82 4.45