Learn R Programming

IBrokers (version 0.10-2)

twsCurrency: Create a twsCurrency

Description

Create a twsCurrency for use in API calls.

Usage

twsCurrency(symbol,
            currency='USD',
            exch='IDEALPRO',
            primary='',
            strike='0.0',
            right='',
            local='',
            multiplier='',
            include_expired='0',
            conId=0)

Value

A twsContract object.

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

Author

Jeffrey A. Ryan

Details

A wrapper to twsContract to make ‘currency/FX’ contracts easier to specify.

twsCASH is an alias.

References

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

See Also

reqHistoricalData, twsContract

Examples

Run this code
currency <- twsCurrency("EUR")

Run the code above in your browser using DataLab