twsContract {IBrokers} | R Documentation |
Create a twsContract for use in API calls.
twsContract(symbol, sectype, exch, primary, expiry, strike, currency, right, local, multiplier, combo_legs_desc, comboleg, include_expired)
symbol |
the IB symbol requested |
sectype |
the security type |
exch |
the requested exchange |
primary |
the primary exchange of the security |
expiry |
the expiration date |
strike |
the strike price |
currency |
the requested currency |
right |
the requested right |
local |
the local security name |
multiplier |
the contract multiplier |
combo_legs_desc |
not implemented yet |
comboleg |
not implemented yet |
include_expired |
should expired contracts be included |
These are directly from the TWS API. See that help until I can find time to fill in this one.
More useful for specific requests are twsEquity
and the
eventual addition of twsOption
, twsBond
, twsFuture
,
etc.
A twsContract
object.
Jeffrey A. Ryan
Interactive Brokers: www.interactivebrokers.com
contract <- twsContract("AAPL","STK","SMART","ISLAND", "","0.0","USD","","","",NULL,NULL,"0")