Skip to content
Prev 2217 / 15274 Next

New IBrokers package on CRAN

Jeff,

Many thanks for putting together this package.  It should be very useful.

I am having trouble using it.  I know it's 0.0-1, but I would like to
start using it.  I have R 2.6.2, latest IB Workstation and latest API
9.40.  I use WinXP.
Loading required package: IBrokers
Loading required package: xts
Loading required package: zoo
IBrokers version 0.0-1: (pre-alpha)
See ?IBrokers for details
Error in readChar(s, 1) : negative length vectors are not allowed
An IB window pops up and asks me if I want to accept incoming connection.
I press yes (but the error in the R GUI is already there).

If I try to understand where the error comes from:
description              class               mode
text             opened
"->localhost:7496"           "socket"               "a+"
"text"           "opened"
          can read          can write
             "yes"              "yes"
Another IB window pops up informing me that "The Socket client is out of
date and needs to be upgraded." And R GUI hangs up using 99% CPU.

Any suggestions are much appreciated.

In terms of the package wishlist, it would be nice to have access to the
Trades window and the Account window.

Adrian Dragulescu

I tried doing hooking R to IB using their Java API and got something
very rudimentary going on, but my Java wasn't that good to figure out how
to handle the multithreading features.
On Fri, 22 Feb 2008, Jeff Ryan wrote: