Source code for simple_back.exceptions

[docs]class BacktestRunError(Exception): def __init__(self, message): self.message = message
[docs]class LongShortLiquidationError(Exception): def __init__(self, message): self.message = message
[docs]class NegativeValueError(Exception): def __init__(self, message): self.message = message
[docs]class TimeLeakError(Exception): def __init__(self, current_date, requested_date, message): self.current_date = current_date self.requested_date = requested_date self.message = message
[docs]class PriceUnavailableError(Exception): def __init__(self, symbol, requested_date, message): self.symbol = symbol self.requested_date = requested_date self.message = message
[docs]class InsufficientCapitalError(Exception): def __init__(self, message): self.message = message
[docs]class MissingMetricsError(Exception): def __init__(self, metrics, message): self.metrics = metrics self.message = message