[R] IBrokers readBin is of argument NULL
loyolite270
loyolite270 at gmail.com
Wed Oct 31 07:59:29 CET 2012
hi
I ran the below code, its throwing some error.
> contract <- twsEquity("FAS")
> reqMktData(tws, contract)
Error in if (curMsg == .twsIncomingMSG$TICK_PRICE) { :
argument is of length zero
So i ran this following code to check the location of the problem
> socketSelect(list(con), write=FALSE, timeout=15)
[1] TRUE
> readBin(con,character(),1) # which is the curMsg
character(0)
The above readBin command is always giving the same result as above. I think
its not able to read any msg from TWS API or TWS API is not sending any msg
(may be i should change settings). Can some one please help with this
problem ?
Thanks
Prabakar
--
View this message in context: http://r.789695.n4.nabble.com/IBrokers-readBin-is-of-argument-NULL-tp4647968.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list