سؤال

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