mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-16 11:18:05 +08:00
The datetime attribute of TradingAlgorithm was initially None, so calling get_datetime in initialize was causing an unhandled exception. This commit addresses that issue by calling on_dt_changed when initializing the TradingAlgorithm, to force all datetimes to be in line with the period_start.