Skip to content

Rbloomberg problem SOLVED

1 message · davidr at rhotrading.com

#
It's the as.chron(Sys.time()-xxx).
Look at the value:
[1] (05/08/08 20:53:44)
[1] "2008-05-08 15:53:52 CDT"

The start time given to Bloomberg is in the future!
Maybe Ana is in a different time zone.

All works if you use explicit dates and times in the as.chron calls.


-- David


-----Original Message-----
From: Jorge Nieves [mailto:jorge.nieves at moorecap.com] 
Sent: Thursday, May 08, 2008 3:33 PM
To: David Reiner <davidr at rhotrading.com>
Subject: RE: [R-SIG-Finance] Rbloomberg problem

David,

Please let me know if you figure out a way to fix this thing. I will make sure to let you know if do on my side.


Thanks,

Jorge 

-----Original Message-----
From: davidr at rhotrading.com [mailto:davidr at rhotrading.com] 
Sent: Thursday, May 08, 2008 02:41 PM
To: Ana Nelson; r-sig-finance at stat.math.ethz.ch; Jorge Nieves
Subject: RE: [R-SIG-Finance] Rbloomberg problem


I installed the new RBloomberg from r-forge into a new R 2.7.0 patched, and I am getting the same results as Jorge.
R version 2.7.0 Patched (2008-05-06 r45624)
i386-pc-mingw32 

locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] RBloomberg_0.1-11  chron_2.3-22       zoo_1.4-2          RDCOMClient_0.92-0

loaded via a namespace (and not attached):
[1] grid_2.7.0     lattice_0.17-7 tools_2.7.0
character(0)
BID.OPEN ASK.OPEN
(05/08/08 13:14:41)       NA       NA
Error in substr(text, first, last) : invalid substring argument(s)

(I was also got the same results in R 2.6.1 patched with the RBloomberg_0.1-10, and R 2.7.0 with RBloomberg_0.1-10) (Is it possible that Bloomberg is confused? Does BDP work in Excel? BDH?)

----------------------------
David L. Reiner, PhD
Head Quant
Rho Trading Securities, LLC
----------------------------

From: r-sig-finance-bounces at stat.math.ethz.ch [mailto:r-sig-finance-bounces at stat.math.ethz.ch] On Behalf Of Ana Nelson
Sent: Thursday, May 08, 2008 11:09 AM
To: r-sig-finance at stat.math.ethz.ch
Subject: Re: [R-SIG-Finance] Rbloomberg problem

I'm using R 2.7

There is a newer version of RBloomberg which you can try, 0.1-11. It's not on CRAN yet, but you can get it from r-forge:
http://r-forge.r-project.org/projects/rbloomberg/

To install the package directly within R type: install.packages("RBloomberg",repos="http://R-Forge.R-project.org")

I have attached a script of what I am running. Will you run this and send me your console transcript as a text file attachment? (you can send it directly to me, not the list)


2008/5/8 Jorge Nieves <jorge.nieves at moorecap.com>:
?Thank you...

I just re-run them now and obtained the same results.. What version of R are you using?

-----Original Message-----
From: r-sig-finance-bounces at stat.math.ethz.ch
[mailto:r-sig-finance-bounces at stat.math.ethz.ch] On Behalf Of Ana Nelson
Sent: Thursday, May 08, 2008 11:40 AM
To: r-sig-finance at stat.math.ethz.ch
Subject: Re: [R-SIG-Finance] Rbloomberg problem

Hi, Jorge,

Was the market actually open for the time period you requested? I've just run those queries and they are working fine for me.

Will you try this again making sure the market you are querying is open and let me know if it works for you?

Regards,
Ana



2008/5/8 Jorge Nieves <jorge.nieves at moorecap.com>:
Rbloomberg.
run.
? ? ? ?[[alternative HTML version deleted]]

_______________________________________________
R-SIG-Finance at 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.

_______________________________________________
R-SIG-Finance at 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.