R/twsComboLeg.R

Defines functions twsComboLeg

Documented in twsComboLeg

twsComboLeg <- function(conId=0,
                        ratio=0,
                        action=c("BUY","SELL","SSHORT"),
                        exchange=NULL,
                        openClose=0,
                        shortSaleSlot=0,
                        designatedLocation="",
                        exemptCode=-1)
{
  structure(list(conId=conId,
                 ratio=ratio,
                 action=action[1],
                 exchange=exchange,
                 openClose=openClose,
                 shortSaleSlot=shortSaleSlot,
                 designatedLocation=designatedLocation,
                 exemptCode=exemptCode,
                 SAME=0,OPEN=1,CLOSE=2,UNKNOWN=3),
            class="twsComboLeg") 
}

Try the IBrokers package in your browser

Any scripts or data that you put into this service are public.

IBrokers documentation built on Nov. 16, 2022, 5:05 p.m.