twsFuture {IBrokers}R Documentation

Create a twsFuture Contract

Description

Create a twsFuture contract for use in API calls.

Usage

twsFuture(symbol,
          exch,
          expiry,
          primary='',
          currency='USD',
          right='',
          local='',
          multiplier='',
          include_expired='0',
          conId=0)

Arguments

symbol

the IB symbol requested

exch

the requested exchange

expiry

the requested contract expiration

primary

the primary exchange of the security

currency

the requested currency

right

the requested right

local

the local security name

multiplier

the contract multiplier

include_expired

should expired contracts be included

conId

contract ID

Details

A wrapper to twsContract to make ‘futures’ contracts easier to specify.

twsFUT is an alias.

Value

A twsContract object.

Author(s)

Jeffrey A. Ryan

References

Interactive Brokers: https://www.interactivebrokers.com

See Also

reqHistoricalData, twsContract

Examples

future <- twsFuture("NQ","GLOBEX","200803")

[Package IBrokers version 0.10-2 Index]