quantlab.dataset.config.MappedDayBarsConfig#
- class quantlab.dataset.config.MappedDayBarsConfig(*, source, zarr_file_path, sep=None, check_tolerance=0.0001, resample_freq=None, resample_how=None, name=None)[source]#
Bases:
FrozenConfigConfig of the Day aggregates mapped onto permatickers, adjusted and kept in a store (#353, #354).
sourceis the permaticker view the store is written from (its own bars, not resampled);zarr_file_pathis the store. The adjusted prices are chained from Massive’s split and dividend pulls in the raw tier ofsource’s Day aggregates (ADR 0048).sep, when given, is SEP’s store the adjusted returns are checked against, withincheck_tolerance.Examples
With
barsaPermatickerDayBarDatasetandsepaSharadarStockDataset:cfg = MappedDayBarsConfig(source=bars, sep=sep, zarr_file_path="/data/massive_permaticker_day_bars_1d.zarr") sorted(cfg.to_dict()) # ['check_tolerance', 'name', 'resample_freq', 'resample_how', 'sep', 'source', 'zarr_file_path']
- check_tolerance = 0.0001#
The largest difference of two daily adjusted returns that is not a disagreement, on top of what SEP’s rounding of its closes to 0.001 allows.
- 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 Day aggregates’ defaults.
- sep = None#
SEP’s store, whose adjusted returns the store’s are checked against;
Nonechecks nothing.
- source#
The permaticker view the store is written from.
- zarr_file_path#
The store of the mapped bars.