TradingSession#

class qf_lib.backtesting.trading_session.trading_session.TradingSession[source]#

Bases: object

Base class for all Trading Sessions. It configures all the elements of the trading environment.

start_trading() None[source]#

Carries out an while loop that processes incoming events. The loop continues until the EndTradingEvent occurs (e.g. no more data for the backtest).