R/twsExecution.R

Defines functions `twsExecution`

`twsExecution` <- 
function(orderId,
         clientId,
         execId,
         time,
         acctNumber,
         exchange,
         side,
         shares,
         price,
         permId,
         liquidation,
         cumQty,
         avgPrice,
         orderRef,
         evRule,
         evMultiplier) {

  # special constructor if called with no args
  if(is.null(names(match.call()[-1])))
    return(do.call('twsExecution', rep(list(NULL),16)))

  structure(list(orderId=orderId,
                 clientId=clientId,
                 execId=execId,
                 time=time,
                 acctNumber=acctNumber,
                 exchange=exchange,
                 side=side,
                 shares=shares,
                 price=price,
                 permId=permId,
                 liquidation=liquidation,
                 cumQty=cumQty,
                 avgPrice=avgPrice,
                 orderRef=orderRef,
                 evRule=evRule,
                 evMultiplier=evMultiplier),
            class="twsExecution")

}

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.