twsContract {IBrokers}R Documentation

Create a twsContract

Description

Create a twsContract for use in API calls.

Usage

twsContract(symbol,
            sectype,
            exch,
            primary,
            expiry,
            strike,
            currency,
            right,
            local,
            multiplier,
            combo_legs_desc,
            comboleg,
            include_expired)

Arguments

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

Details

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.

Value

A twsContract object.

Author(s)

Jeffrey A. Ryan

References

Interactive Brokers: www.interactivebrokers.com

See Also

reqHistoricalData

Examples

contract <- twsContract("AAPL","STK","SMART","ISLAND",
                        "","0.0","USD","","","",NULL,NULL,"0")

[Package IBrokers version 0.1-3 Index]