mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-03 12:20:37 +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:
1 parent
8937ac1f41
commit
ab1a23526d
1 file changed
+1
-1
@@ -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