diff --git a/03 Writing Algorithms/18 Consolidating Data/02 Consolidator Types/02 Calendar Consolidators/99 Examples.html b/03 Writing Algorithms/18 Consolidating Data/02 Consolidator Types/02 Calendar Consolidators/99 Examples.html index 90e136d851..74eb0bf71d 100644 --- a/03 Writing Algorithms/18 Consolidating Data/02 Consolidator Types/02 Calendar Consolidators/99 Examples.html +++ b/03 Writing Algorithms/18 Consolidating Data/02 Consolidator Types/02 Calendar Consolidators/99 Examples.html @@ -247,9 +247,9 @@
QuoteBar
objects that star
# Forex market opens at 5pm EST.
start = dt.replace(hour=0, minute=0, second=0, microsecond=0)
if dt.hour < 17:
- start -= timedelta(7)
+ start -= timedelta(hours=7)
else:
- start += timedelta(17)
+ start += timedelta(hours=17)
# Ends at 5pm EST next day.
return CalendarInfo(start, timedelta(1))