quantlab.dataset.sharadar.spells.SpellPanelDataset#
- class quantlab.dataset.sharadar.spells.SpellPanelDataset(config)[source]#
Bases:
RawDatasetDaily panel of per-security values held over spells of days.
A subclass sets
config_cls(aSharadarDatasetConfigwhosetableis"sep"),VARIABLE(the panel’s one variable) orVARIABLES(its several),RAW_TABLES(the raw tables whose watermarks bound the calendar) and implements_build_spellsand_variable_attrs.Examples
SharadarIndustryDatasetis one:SharadarIndustryDataset(config).panel("2024-01-02", "2024-01-05")["industry"]
- RAW_TABLES = ('sep',)#
Raw tables that must be complete through a day for it to be built;
"sep"is always among them, being the calendar.
- VARIABLE = ''#
Name of the panel’s one variable.
- VARIABLES = ()#
Names of the panel’s variables when it has several; empty means
(VARIABLE,).