quantlab.dataset.sharadar.tables.window_file#

quantlab.dataset.sharadar.tables.window_file(vendor_root, code, pulled_at, start, end)[source]#

Return the path a date-window pull of a table is written to.

A window pull is a complete copy of the table over start..``end`` (both inclusive), so its rows replace every earlier row of those dates. The name records when it was pulled, so names sort in pull order, and the dates it covers.

Examples

>>> window_file("/d/sharadar", "sep", datetime(2024, 1, 11, 8, 30),
...             date(2024, 1, 2), date(2024, 1, 11)).name
'window_20240111T083000000000_2024-01-02_2024-01-11.parquet'