API Reference¶
Running a Backtest¶
Algorithm API¶
The following methods are available for use in the initialize
,
handle_data
, and before_trading_start
API functions.
In all listed functions, the self
argument is implicitly the
currently-executing TradingAlgorithm
instance.
Data Object¶
Scheduling Functions¶
Assets¶
Trading Controls¶
Zipline provides trading controls to help ensure that the algorithm is performing as expected. The functions help protect the algorithm from certian bugs that could cause undesirable behavior when trading with real money.
Pipeline¶
For more information, see Pipeline API