[R-SIG-Finance] IBrokers Package: wrong Clientid returns ?

cen six censix0 at gmail.com
Tue Jan 20 21:04:00 CET 2015


Are you using the IBrokers package version 0.9-10  or higher ? (from
code.google.com)

cheers

On Tue, Jan 20, 2015 at 2:38 AM, ce <zadig_1 at excite.com> wrote:

>
> Dear all,
>
> I just upgraded TWS to Build 948.3c, Jan 5, 2015 5:12:23 PM
> My program that worked fine before started to return wrong clientid . I
> set client ID to 96. but after sending the order, In order status , or
> order execution events I get clientid 6  !!  Even I tried to set Master API
> Client ID to 96 in TWS -> Configuration -> API.  didn't work.
> If I set Clientid to 6,  TWS returns 0 as Clientid.
>
> Here is some piece of code :
>
> > ibClientId <- 96
> >
> >
> > #global: create the connection to IB  (this can probably not be stored
> anywhere, so
> > #we have to recreate it within "IBexecuteStrategy.r"
> > ibConnection<-NULL
> > if (!is.twsConnection(ibConnection)) {
> +    ibConnection<- twsConnect(clientId=ibClientId, host="localhost",
> +                                       port=7496, verbose=TRUE,
> +                                       timeout=15, filename=NULL)
> + }
> > print(ibConnection)
> <twsConnection,96 @ 20150119 20:25:19 EST, nextId=4>
>
> TWS OpenOrder: orderId=3 clientId=6 conId=12087807 symbol=EUR
> status=Submitted
>
> _______________________________________________
> R-SIG-Finance at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions
> should go.
>

	[[alternative HTML version deleted]]



More information about the R-SIG-Finance mailing list