mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-05 02:27:35 +08:00
BUG: Use last trading day for last successful date message.
market_open member does not exist on TradingEnvironment.
This commit is contained in:
@@ -176,7 +176,7 @@ class TradingEnvironment(object):
|
||||
if next_open is None:
|
||||
raise Exception(
|
||||
"Attempt to backtest beyond available history. \
|
||||
Last successful date: %s" % self.market_open)
|
||||
Last successful date: %s" % self.last_trading_day)
|
||||
|
||||
return self.get_open_and_close(next_open)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user