I am using the greatly useful package twsInstrument and reqTBBOhistory to download data like this:

tws <- twsConnect()
reqTBBOhistory("AAPL")

This assigns the data to the variable AAPL and also saves the data to disk.

Is there some easy way to read in this data from disk without downloading the data from IB again?

有帮助吗?

解决方案

Actually I now realize getSymbols from quantmod does this when one specifies src as FI. But that requires I also specify save as T in the reqTBBOhistory, so it looks like this:

reqTBBOhistory("AAPL", ndays=95, save=T)

and load:

getSymbols("AAPL", src="FI", dir="/mnt/W/BAT")
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top