powered by
Create a twsFuture contract for use in API calls.
twsFuture(symbol, exch, expiry, primary='', currency='USD', right='', local='', multiplier='', include_expired='0', conId=0)
A twsContract object.
twsContract
the IB symbol requested
the requested exchange
the requested contract expiration
the primary exchange of the security
the requested currency
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 ‘futures’ contracts easier to specify.
twsFUT is an alias.
twsFUT
Interactive Brokers: https://www.interactivebrokers.com
reqHistoricalData, twsContract
reqHistoricalData
future <- twsFuture("NQ","GLOBEX","200803")
Run the code above in your browser using DataLab