quantlab.acquisition.massive.client.DayDownload#

class quantlab.acquisition.massive.client.DayDownload(day, path, fetched_bytes=0, seconds=0.0)[source]#

Bases: object

What MassiveClient.download_days did for one trading day.

Attributes:
daydate

The trading day.

pathPath or None

The verified file in the raw tier; None when Massive has no file for the day (a holiday, or not published yet).

fetched_bytesint

Bytes downloaded for it; 0 when the file was already there whole.

secondsfloat

Wall-clock seconds its download took.

Examples

>>> DayDownload(date(2024, 11, 29), Path("2024-11-29.csv.gz"), 2_300_000_000, 40.0).published
True
>>> DayDownload(date(2024, 11, 29), None).published
False
property published#

Whether Massive has a file for the day.

Examples

>>> DayDownload(date(2024, 12, 2), None).published
False