Hi there,

I am having some troubles with the use of the IBrokers package on my IB
paper account. I am trying to get market data and an order execution for a
combo contract, with no success in both cases. I wonder if anyone could
help. Here is the code I tried



  ibg <- ibgConnect()



leg1 <- twsComboLeg( conId = "79265697",

                                   ratio = 1,

                                action = "BUY",

                           exchange = "SMART")



leg2 <- twsComboLeg( conId = "79265687",

                                   ratio = 1,

                                action = "SELL",

                           exchange = "SMART")



 reqMktData(conn = ibg, Contract = twsBAG(leg1,leg2), tickGenerics = "",
tickerId = "1", snapshot = T)



 placeOrder(ibg, twsBAG(leg1,leg2), twsOrder(reqIds(ibg),"BUY",1,"MKT"))



About the market data, I am not getting anything, even by setting snapshot
= F. As for the order, it is placed but never executed. Could it be a
problem with contract objects created by twsBAG ? Does anyone know how to
fix these issues ?



Best regards,

Alain

	[[alternative HTML version deleted]]

