search this list for twsBAG.  There was a message on August 8th that should
help.

On Thu, Sep 1, 2011 at 12:46 PM, Andres Susrud <andres.susrud@gmail.com>wrote:

> Hi,
>
> I have some problems making a spread trade to IBrokers.
>
> if(ret[2]==T & ret[1]=="short")
>     {Id_1<-reqIds(twsOC)
>      Id_2<-reqIds(twsOC)
>      IBrokers:::.placeOrder(twsOC,fut1,twsOrder(Id_1,"Buy",1,"MKT"))
>      IBrokers:::.placeOrder(twsOC,fut2,twsOrder(Id_2,"Sell",1,"MKT"))
>      open.pos=T
>       longShort="short"
>       print("trade")
>       }
>
> I have tried the twsComboLeg, but with no success.
>
> BR
>
> Andres S. Susrud
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Finance@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]]

