quantlab.backtest.live.LivePrediction#
- class quantlab.backtest.live.LivePrediction(timestamp, row, store, record)[source]#
Bases:
objectWhat
predict_live_barappended.- 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'])