Skip to content

IBrokers Package: wrong Clientid returns ?

2 messages · cen six, Joshua Ulrich

#
Hi, I realize it has been a while, but essentially the problem is that the
recent versions of the IB API (i.e. as per TWS build 9493) do require api
clients to identify themselves with at least client-version63.  Now, the
last I have seen of the IBrokers package however uses client-version47 or
49 which is why there are problems when R clients connect. i.e. they may
not be assigned the clientId that they were requesting from the server,
etc. etc.

One way to fix this is to update the 'IBrokers' package. But I am not sure
who the maintainer is at the moment.

A workaround that I have found works reasonably well for me, is to include
the following file into your R code, right after loading the 'IBrokers'
package. You can download it from my repository here:

https://github.com/censix/INTRADAY-PartAB/blob/master/INTRADAY-PartA/__IBapi-clientVer63-v002.r

i.e. do something like

*library(IBrokers)*
*source("__IBapi-clientVer63-v002.r")*

The file re-implements  some of the outdated IBrokers() function and
overwrites them. A word of warning however!  This is only a PARTIAL IB api
implementation. Only the most basic ordertypes have been implemented, so
only use this if you know what you are doing.

Regards

Soren
On Thu, Jan 22, 2015 at 1:38 AM, ce <zadig_1 at excite.com> wrote:

            

  
  
#
On Wed, Apr 1, 2015 at 5:45 AM, cen six <censix0 at gmail.com> wrote:
R> packageDescription("IBrokers")[c("Version","Maintainer")]
$Version
[1] "0.9-12"

$Maintainer
[1] "Joshua M. Ulrich <josh.m.ulrich at gmail.com>"

The source is on GitHub.  Pull requests welcome.
https://github.com/joshuaulrich/IBrokers