quantlab.portfolio.decision_inputs.PanelReads#
- class quantlab.portfolio.decision_inputs.PanelReads(tradable, factors=None, risk_exposures=None, risk_estimates=None)[source]#
Bases:
objectWhat
DecisionInputs.panelreads besides the predictions and prices, for a range of bars.DecisionInputs.panel_readsreads it once over many blocks; eachpanelcall slices its block’s bars from it.- Attributes:
- tradablexr.DataArray
Booleans on
(timestamp, symbol): the dataset’stradable_bars.- factorsxr.Dataset or None
The rule’s declared factors on
(timestamp, symbol),Nonewhen it declares none.- risk_exposures, risk_estimatesxr.Dataset or None
A declared factor risk model’s exposures and its estimate store’s rows (
Nonewhen the store has none in the range); bothNonewithout a declared risk model.
Examples
>>> reads = inputs.panel_reads(ts[0], ts[3]) >>> reads.tradable.dims ('timestamp', 'symbol')