quantlab.utils.watermark.resume_from#
- quantlab.utils.watermark.resume_from(through, start, overlap_days=0)[source]#
Return the first day a pull asks for: the day after the watermark, less an overlap.
Never before
start(the first day the pull would ask for without a watermark).- Parameters:
- throughdate or None
The watermark’s day, or
Nonewithout one.- startdate
The first day to ask for without a watermark.
- overlap_daysint, default 0
Days before the day after the watermark asked for again.
Examples
>>> resume_from(date(2024, 3, 14), date(2024, 1, 2)) datetime.date(2024, 3, 15) >>> resume_from(date(2024, 3, 14), date(2024, 1, 2), overlap_days=3) datetime.date(2024, 3, 12) >>> resume_from(None, date(2024, 1, 2)) datetime.date(2024, 1, 2)