quantlab.dataset.sharadar.fundamentals.SharadarFundamentalsDataset#
- class quantlab.dataset.sharadar.fundamentals.SharadarFundamentalsDataset(config)[source]#
Bases:
ReleasePanelDatasetDaily point-in-time panel of one as-reported SF1 dimension, keyed by permaticker.
- Parameters:
- dataset_configSharadarFundamentalsConfig
raw_data_dir_pathis<download-dir>/sharadar, holding thesf1,sep(the calendar),tickersandindicatorsraw tables;dimensionis"ARQ"or"ART".
Examples
With
configas in the module example:ds = SharadarFundamentalsDataset(config).update() sorted(ds.panel("2024-01-02", "2024-01-05").data_vars)[:3] # ['accoci', 'assets', 'assetsavg']
- COLUMN_MAP = {'ev': 'sf1_ev', 'evebit': 'sf1_evebit', 'evebitda': 'sf1_evebitda', 'marketcap': 'sf1_marketcap', 'pb': 'sf1_pb', 'pe': 'sf1_pe', 'ps': 'sf1_ps'}#
SF1’s valuation indicators that DAILY also holds (
marketcap,ev,pe, …) go bysf1_<name>when merged or exported, so a merge with the DAILY panel keeps DAILY’s daily values under the plain names. The store andpanel()keep SF1’s own names.
- RAW_TABLES = ('sf1', 'sep')#
SF1 and SEP, the calendar, must be complete through a day for it to be built.
- config_cls#
The config class used to rebuild this dataset from a saved config.
alias of
SharadarFundamentalsConfig