These examples work ok for me. R version 2.9.2. RBloomberg  0.1-11.  This could be a problem with your Bloomberg terminal. One thing I would suggest is typing "UPGR" on your terminal to check your Bloomberg software status. Also try these calls in Bloomberg's API test app.

--Phil Smyth



________________________________
From: Sergey Goriatchev <sergeyg@gmail.com>
To: r-sig-finance@stat.math.ethz.ch
Sent: Fri, October 16, 2009 5:18:15 AM
Subject: [R-SIG-Finance] Question related to RBloomberg

Hello, everyone

I have RBloomberg 0.1-11 on my machine.
I cannot extract futures contract value with this code:

conn <- blpConnect(show.days="week", na.action="previous.days",
periodicity="daily")
ty1.cvalue <- blpGetData(conn, c("TY1 Comdty"), "FUT_CONT_SIZE")
blpDisconnect(conn)

I get an error message:
Error in if (typ[n] == "character") { : argument is of length zero

By the way, the following example in blpGetData does not work either,
producing the same error message:
> conn <- blpConnect()
>
> ## Snapshot
> eda <- blpGetData(conn, c("ED5 Comdty","ED6 Comdty","ED7 Comdty",
+ "ED8 Comdty"), "BID")
Error in if (typ[n] == "character") { : argument is of length zero

I can always specify the contract size manually, of course, but I
wonder why these requests do not work with RBloomberg?

[[elided Yahoo spam]]

Best,
Sergey

_______________________________________________
R-SIG-Finance@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only.
-- If you want to post, subscribe first.

	[[alternative HTML version deleted]]

