BacktestEvent#

class openstef_beam.backtesting.backtest_event.BacktestEvent(**data: Any) None[source]

Bases: BaseModel

Represents a single event during a backtest simulation.

An event can be either a prediction or training operation that occurs at a specific timestamp.

Parameters:

data (Any)

type: Literal['predict', 'train']
timestamp: datetime
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'protected_namespaces': (), 'ser_json_inf_nan': 'null'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].