Futures
Requesting Data
Request Futures data in your algorithm to receive a feed of contract prices in the OnData
on_data
method. For more information about the specific dataset we use for backtests, see the US Futures dataset listing. To trade Futures live, you can use the QuantConnect data provider or one of the brokerage data providers.
To request Futures data, call one of the following methods:
AddFuture
self.add_future
to add a basket of contracts for a single FutureAddFutureContract
self.add_future_contract
to add individual contracts for an underlying Future
Request Continuous Contracts
AddFuture
self.add_future
Request and Filter All Contracts
AddFuture
self.add_future
Select Individual Contracts
AddFutureContract
self.add_future_contract