package top.baogutang.strategy.alerts;

import lombok.extern.slf4j.Slf4j;
import top.baogutang.strategy.models.PositionPlan;
import top.baogutang.strategy.models.Signal;

import java.util.Arrays;

@Slf4j
public class ConsoleAlertChannel implements AlertChannel {

    public void send(Signal s, PositionPlan plan) {

        log.info("[SIGNAL] {} {} {} entry={} stop={} targets={} qty={} lev={} note={}",
                s.getSymbol(),
                s.getStrategy(),
                s.getDirection(),
                s.getEntryRef(),
                s.getStopRef(),
                Arrays.toString(s.getTargets()),
                plan.getQuantity(),
                plan.getLeverage(),
                s.getComment());
    }

}
