powered by
Create a twsCurrency for use in API calls.
twsCurrency(symbol, currency='USD', exch='IDEALPRO', primary='', strike='0.0', right='', local='', multiplier='', include_expired='0', conId=0)
A twsContract object.
twsContract
the IB symbol requested
the requested currency
the requested exchange
the primary exchange of the security
the strike price
the requested right
the local security name
the contract multiplier
should expired contracts be included
contract ID
Jeffrey A. Ryan
A wrapper to twsContract to make ‘currency/FX’ contracts easier to specify.
twsCASH is an alias.
twsCASH
Interactive Brokers: https://www.interactivebrokers.com
reqHistoricalData, twsContract
reqHistoricalData
currency <- twsCurrency("EUR")
Run the code above in your browser using DataLab