quantlab.backtest.live.LivePrediction#

class quantlab.backtest.live.LivePrediction(timestamp, row, store, record)[source]#

Bases: object

What predict_live_bar appended.

Attributes:
timestamppd.Timestamp

The bar predicted, t.

rowxr.Dataset

The row appended, one variable per label on (timestamp, symbol).

storeLivePredictionStore

The store it was appended to.

recorddict

The row’s record, as written to <store>.rows.json.

Examples

>>> done = predict_live_bar(run_dir, "live/live_predictions.zarr")
>>> done.timestamp, list(done.row.data_vars)
(Timestamp('2026-10-07 00:00:00'), ['ret_5'])