Re: [R-SIG-Finance] IBrokers Problem

2013-12-21 Thread Michael Smith
Perfect, that worked. Thanks a lot! M On 12/21/2013 09:45 PM, G See wrote: I'm away from a computer. Try tws - ibgConnect() Garrett On Dec 21, 2013 6:33 AM, Michael Smith my.r.h...@gmail.com mailto:my.r.h...@gmail.com wrote: Hi Garrett, Gateway connects fine to the IB

[R-SIG-Finance] IBrokers Problem

2013-12-09 Thread Michael Smith
All, I'm trying to better understand how to use the IBrokers package by going through the `IBrokers.pdf` vignette. I'm using the demo version of TWS (login `edemo`). TWS seems to be running fine. However, I get stuck at the following command from the vignette: reqContractDetails(tws,

Re: [R-SIG-Finance] IBrokers Problem

2013-12-09 Thread Michael Smith
Thanks for the quick reply, but R still hangs after running this command with the new ticker. Best, Michael On 12/09/2013 09:29 PM, G See wrote: The ticker for that ETF changed to QQQ on March 23, 2011 Try reqContractDetails(tws, twsEquity(QQQ)) Best, Garrett On Mon, Dec 9, 2013 at

Re: [R-SIG-Finance] IBrokers Problem

2013-12-09 Thread G See
I don't know; it works for me. Does reqCurrentTime(tws) return the current time? Garrett tws - ibgConnect() reqCurrentTime(tws) [1] 2013-12-09 09:04:37 CST reqContractDetails(tws, twsEquity(QQQ)) [[1]] List of 18 $ version : chr 6 $ contract :List of 16 ..$ conId :

Re: [R-SIG-Finance] IBrokers Problem

2013-12-09 Thread Michael Smith
Does it work for you in the demo TWS version as well? For me, `reqCurrentTime` works fine in the demo TWS version, like all the other examples in the vignette, except for `twsFuture`. reqCurrentTime(tws) TWS Message: 2 -1 2104 Market data farm connection is OK:ibdemo TWS Message: 2 -1 2106 HMDS

Re: [R-SIG-Finance] IBrokers Problem

2013-12-09 Thread G See
Yup. Works fine for me with the demo account on Ubuntu. Have you tried restarting the TWS? (while you're at it, you might consider using IB Gateway instead since it doesn't log you out every day) sessionInfo() R version 3.0.2 (2013-09-25) Platform: x86_64-pc-linux-gnu (64-bit) locale: [1]

Re: [R-SIG-Finance] IBrokers Problem

2013-12-09 Thread Michael Smith
Thanks, Garrett, for your help anyway. I tried restarting TWS, but that didn't help. Maybe I should try it on Ubuntu instead of Fedora. Are you running TWS/Gateway on OpenJDK or Sun Java? For IB Gateway, should I use the FIX CTCI or the IB API? When I log in with CTCI I get Status is inactive