quantlab.dataset.config.MappedTradeBarsConfig#
- class quantlab.dataset.config.MappedTradeBarsConfig(*, source, zarr_file_path, resample_freq=None, resample_how=None, name=None)[source]#
Bases:
FrozenConfigConfig of the Trade bars mapped onto permatickers and kept in a store of their own.
sourceis the permaticker view the store is written from (its own bars, not resampled);zarr_file_pathis the store.resample_freqandresample_howare set byMappedTradeBarDataset.resample.Examples
With
barsaPermatickerTradeBarDataset:>>> cfg = MappedTradeBarsConfig(source=bars, zarr_file_path="/data/massive_permaticker_bars_1m.zarr") >>> sorted(cfg.to_dict()) ['name', 'resample_freq', 'resample_how', 'source', 'zarr_file_path']
- 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.
- source#
The permaticker view the store is written from.
- zarr_file_path#
The store of the mapped bars.