quantlab.dataset.sharadar.tables.snapshot_for#

quantlab.dataset.sharadar.tables.snapshot_for(vendor_root, pulled_at)[source]#

Return the TICKERS snapshot of the run that pulled a file at pulled_at, or None.

The run’s snapshot is the latest one taken at or before the pull (a run pulls TICKERS first), or, when the file was pulled before any (a table pulled ahead of TICKERS), the earliest one after it; either only within SNAPSHOT_TOLERANCE of the pull.

Examples

>>> snapshot_for("/data/downloads/sharadar", pull_time(window)).name
'snapshot_20240111T082900000000.parquet'