twsCurrency {IBrokers} | R Documentation |
Create a twsCurrency for use in API calls.
twsCurrency(symbol, currency='USD', exch='IDEALPRO', primary='', strike='0.0', right='', local='', multiplier='', include_expired='0')
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 |
A wrapper to twsContract
to make ‘currency/FX’
contracts easier to specify.
A twsContract
object.
Jeffrey A. Ryan
Interactive Brokers: www.interactivebrokers.com
reqHistoricalData
, twsContract
currency <- twsCurrency("EUR")