R/twsEquity.R

Defines functions twsCFD twsEquity

Documented in twsCFD twsEquity

twsSTK <- twsEquity <-
function(symbol,exch="SMART",primary="",strike='0.0',
         currency='USD',right='',local='',multiplier='',include_expired='0',conId=0)
{
  twsContract(conId,symbol,'STK',exch,primary,expiry='',strike,
              currency,right,local,multiplier,NULL,NULL,include_expired)
}

twsCFD <- function(symbol, exch, primary="", strike="",
                   currency, right="", local="", multiplier="",
                   include_expired="0", conId=0) {
  twsContract(conId,symbol,'CFD',exch,primary,expiry='',strike,
              currency,right,local,multiplier,NULL,NULL,include_expired)
}

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.