[R-SIG-Finance] Help with iBrokers data
wlblount
bill at easterngrain.com
Tue Apr 9 13:07:19 CEST 2013
control v not working for me today...
running this for the default 1 minute, 1 year works
tws <- twsConnect()
symbol<-"UVXY"
contract <- twsEquity(symbol)
Sys.sleep(10) # mandatory 10s between request to avoid IB pacing violation
pricedata<-reqHistory(tws, Contract=contract)
save(pricedata,file=symbol)
changing the reqHistory arguments to 3 min. and 1 month of data causes an
error....
> pricedata<-reqHistory(tws, Contract=contract, barSize="3 mins", duration =
> "1 M")
gets this error...
Error in reqHistoricalData(conn, Contract, barSize = barSize, duration =
duration, :
formal argument "duration" matched by multiple actual arguments
--
View this message in context: http://r.789695.n4.nabble.com/Help-with-iBrokers-data-tp4663719p4663744.html
Sent from the Rmetrics mailing list archive at Nabble.com.
More information about the R-SIG-Finance
mailing list