I am trying to save an object to a text file with the command write.table(ESH2, "c:/ESH2.txt", sep=",")
. The problem is that the saved time series doesn't contain date and time values that I downloaded. I used the package twsInstrument and the command getBAT(ESH2)
The data i have when loading it into R with the command load(file = "C:/ESH2.Rdata")
ES.Bid.Price ES.Ask.Price ES.Trade.Price ES.Mid.Price ES.Volume
1323700200 1237.25 1237.50 1237.50 1237.375 6954
1324057980 1210.25 1210.50 1210.25 1210.375 3792
1324058040 1210.50 1211.00 1211.00 1210.750 3305
.........
.........
.........
1324058100 NA NA NA NA 823
attr(,".indexCLASS")
[1] POSIXct POSIXt
attr(,".indexTZ")
[1]
attr(,"from")
[1] 20111211 23:59:59
attr(,"to")
[1] 20111216 23:59:59
attr(,"src")
[1] IB
attr(,"updated")
[1] "2011-12-16 18:54:55 CET"
The first column should show Date_Time and not 1323700200.
I am searching for an easy way to download the data once per week and merge the data.
p.s Yes i can read through the tutorials/books to accomplish this and yes i will do it but the problem is my lack of time. I want to start collecting the data this week cause interactive brokers is limiting data requests 1min data = 5DAYS maximum
. I am thankful for any help and suggestions.