Download backtest/engine/exceptions.py from whassan/Rukku: direct link, hf CLI and curl.
- Browser
- Download file 458 Bytes
-
https://huggingface.co/spaces/whassan/Rukku/resolve/main/backtest/engine/exceptions.py
- Command line
-
hf download hf://spaces/whassan/Rukku/backtest/engine/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/spaces/whassan/Rukku/resolve/main/backtest/engine/exceptions.py
458 Bytes
| """Exceptions for the backtesting engine.""" | |
| class EngineError(Exception): | |
| """Base engine error.""" | |
| class EngineHalted(EngineError): | |
| """Engine execution was halted by policy.""" | |
| class LookAheadBiasDetected(EngineError): | |
| """Walk-forward execution detected look-ahead bias.""" | |
| class BacktestNotComplete(EngineError): | |
| """Backtest did not complete.""" | |
| class BacktestPaused(EngineError): | |
| """Backtest paused due to resource limits.""" |