[R-SIG-Finance] IBrokers - reqOpenOrders and placeOrder not working

omerle omerle at laposte.net
Mon May 21 16:02:57 CEST 2012


Thanks Joshua !

It works now !

But I didn't assume anything. I just didn't know that I was building binary packages. 
Without the right keyword I couldn't find any useful documentation and even with what 
you sent to me its quite hard for me to remember the consol thing with cd.. and so 
forth.

Again thanks for your help Joshua.


> Message du 21/05/12 15:03
> De : "Joshua Ulrich" 
> A : "omerle" 
> Copie à : R-SIG-Finance at r-project.org
> Objet : Re: [R-SIG-Finance] IBrokers - reqOpenOrders and placeOrder not working
>
> On Mon, May 21, 2012 at 7:48 AM, omerle  wrote:
> > Hi,
> >
> >
> > 1 - A friend under linux used svn linux http://ibrokers.googlecode.com/svn/trunk/ 
to
> > make
> > a IBrokers directory.
> > Then I zipped the file.
> > 2 - And I installed by doing :
> > install.packages("C:/R/Software/IBrokers.zip", repos=NULL)
> > Installing package(s) into ‘C:/R/R-last-version/library’
> > 3 -
> > library("IBrokers")
> > Error in library(IBrokers) : 'IBrokers' is not a valid installed package
> >
> > (There is a IBrokers directory in my library)
> >
> > Does the IBrokers 0.9-7 version is not working or I made something wrong ?
> >
> You did something very wrong. You assumed you knew what to do instead
> of reading the manual:
> http://cran.r-project.org/doc/manuals/R-exts.html
> 
> The fourth paragraph of the first section of the manual above has a link to:
> http://cran.r-project.org/doc/manuals/R-admin.html#Add_002don-packages
> 
> And make sure to read:
> http://cran.r-project.org/doc/manuals/R-admin.html#Installing-R-under-Windows
> 
> Note that this has nothing to do with finance, and is therefore
> off-topic for this list.
> 
> Best,
> --
> Joshua Ulrich | FOSS Trading: www.fosstrading.com
> 
> 
> >
> > ----------------------------------------------
> >
> > Checkout the code with svn and build it yourself. The current version is 0.9-7
> >
> > On linux or mac, you'd do something like this
> >
> > svn checkout http://ibrokers.googlecode.com/svn/trunk/ ibrokers
> >
> > That will checkout the code into a directory called ibrokers. Then you can
> >
> > R --vanilla CMD INSTALL --build ibrokers
> >
> > HTH,
> > Garrett
> >
> > On Thu, May 17, 2012 at 3:15 PM, omerle  wrote:
> >> Hi,
> >>
> >> I just dowload IBrokers from http://code.google.com/p/ibrokers/downloads/detail?
> >> name=IBrokers_0.9-0.tar.gz&can=2&q=
> >> and install IBrokers with
> >> install.packages("C:/IBrokers_0.9-0).tar.gz", repos = NULL, type="source")
> >> but reqOpenOrders and placeOrders is not working anyway !
> >>
> >> Any other advice ?
> >>
> >> Thanks
> >>
> >>
> >> Try updating to the newest googlecode version. A change in IB response.
> >>
> >> Jeff
> >>
> >> Jeffrey Ryan | Founder | jeffrey.ryan at lemnica.com
> >>
> >> www.lemnica.com
> >>
> >> On May 11, 2012, at 5:26 PM, G See wrote:
> >>
> >>> FWIW, I have the opposite problem. When connected with a live account, I see:
> >>>
> >>>> tws <- twsConnect()
> >>>> tws$nextValidId
> >>> [1] "1"
> >>>
> >>> But, with the demo account, the account number is being stored in nextValidId:
> >>>
> >>>> tws <- twsConnect()
> >>>> tws$nextValidId
> >>> [1] "DU123456"
> >>>
> >>> # But, I changed the actual account number
> >>>
> >>> Best,
> >>> Garrett
> >>>
> >>> On Fri, May 11, 2012 at 8:03 AM, omerle wrote:
> >>>> Dear All,
> >>>>
> >>>> First thanks to Jeff Ryan for the very interesting IBrokers package.
> >>>>
> >>>> After looking for answers on Rseek without success, your are my last hope !
> >>>>
> >>>> Here is my problem :
> >>>>
> >>>> placeOrder & reqOpenOrders don't work on my trading accout but its working on 
my
> > demo
> >>>> account !
> >>>>
> >>>> For instance when I do
> >>>>
> >>>> reqOpenOrders(twsconn) or IBrokers:::.reqOpenOrders(twsconn)
> >>>> => I get only the error message 53 (OPEN_ORDER_END) even if I have open order 
in
> > my
> >>>> console.
> >>>>
> >>>> OR
> >>>>
> >>>> placeOrder
> >>>> => it doesnt do anything
> >>>>
> >>>> => But I can get TWS real time quotes or accountUpdate
> >>>>
> >>>> (I think it was ok before at least for placeOrder)
> >>>>
> >>>> I set the same parameter in configurationAPIs for both my demo account and 
trading
> >> account
> >>>> but trading account is still not working.
> >>>>
> >>>> Do you have any idea what I did wrong and how I can use both placeOrder and
> >> reqOpenOrders
> >>>> ?
> >>>>
> >>>>
> >>>>
> >>>> Many Thanks,
> >>>>
> >>>> Olivier Merle
> >>>>
> >>>> Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente 
?
> >>>> Je crée ma boîte mail www.laposte.net
> >>>>
> >>>> _______________________________________________
> >>>> 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.
> >>> _______________________________________________
> >>> 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.
> >>
> >>
> >> Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
> >> Je crée ma boîte mail www.laposte.net
> >>
> >> _______________________________________________
> >> 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.
> >
> > Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
> > Je crée ma boîte mail www.laposte.net
> >
> > _______________________________________________
> > 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.
> 

Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net



More information about the R-SIG-Finance mailing list