quantlab.dataset.config.PermatickerTradeBarsConfig#
- class quantlab.dataset.config.PermatickerTradeBarsConfig(*, trade_bars, ticker_map, resample_freq=None, resample_how=None, name=None)[source]#
Bases:
FrozenConfigConfig of the Trade bars read on the permaticker axis through the Ticker map.
The view holds no store of its own;
trade_barsandticker_mapkeep their own configs, both component fields.resample_freqandresample_howare set byPermatickerTradeBarDataset.resample.Examples
With
trade_barsaMassiveTradeBarDatasetandticker_mapaTickerMap:>>> cfg = PermatickerTradeBarsConfig(trade_bars=trade_bars, ticker_map=ticker_map) >>> sorted(cfg.to_dict()) ['name', 'resample_freq', 'resample_how', 'ticker_map', 'trade_bars']
- name = None#
Dotted import path of the dataset class; filled by the config setter.
- resample_freq = None#
The coarser bars the panel is resampled to;
Nonefor the store’s bars.
- resample_how = None#
{variable: method}of the resample;Nonefor the Trade bars’ defaults.
- ticker_map#
The map from each day’s Massive ticker to its permaticker.
- trade_bars#
The Trade bar store on the Massive ticker axis.