package top.baogutang.strategy.models;


import top.baogutang.strategy.services.IndicatorService;

public class StrategyContext {
    private final String symbol;
    private final MarketDataCache cache;
    private final IndicatorService indicators;
    private final double accountEquity;
    private final double riskPercent;
    private final long now;

    public StrategyContext(String symbol, MarketDataCache cache, IndicatorService indicators,
                           double accountEquity, double riskPercent, long now) {
        this.symbol = symbol;
        this.cache = cache;
        this.indicators = indicators;
        this.accountEquity = accountEquity;
        this.riskPercent = riskPercent;
        this.now = now;
    }

    public String getSymbol() {
        return symbol;
    }

    public MarketDataCache getCache() {
        return cache;
    }

    public IndicatorService getIndicators() {
        return indicators;
    }

    public double getAccountEquity() {
        return accountEquity;
    }

    public double getRiskPercent() {
        return riskPercent;
    }

    public long getNow() {
        return now;
    }
}
