twsCurrency: Create a twsCurrency

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Create a twsCurrency for use in API calls.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
twsCurrency(symbol,
            currency='USD',
            exch='IDEALPRO',
            primary='',
            strike='0.0',
            right='',
            local='',
            multiplier='',
            include_expired='0',
            conId=0)

Arguments

symbol

the IB symbol requested

currency

the requested currency

exch

the requested exchange

primary

the primary exchange of the security

strike

the strike price

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 ‘currency/FX’ contracts easier to specify.

twsCASH is an alias.

Value

A twsContract object.

Author(s)

Jeffrey A. Ryan

References

Interactive Brokers: www.interactivebrokers.com

See Also

reqHistoricalData, twsContract

Examples

1
currency <- twsCurrency("EUR")

Example output

Loading required package: xts
Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

    as.Date, as.Date.numeric

IBrokers version 0.9-10.  Implementing API Version 9.64

IBrokers comes with NO WARRANTY.  Not intended for production use!


See ?IBrokers for details.

IBrokers documentation built on May 29, 2017, 10:01 p.m.