package entities import "github.com/shopspring/decimal" type AlertID string type AlertCondition string const ( AlertConditionAbove AlertCondition = "above" // trigger when candle High reaches target AlertConditionBelow AlertCondition = "below" // trigger when candle Low reaches target AlertConditionCloseAbove AlertCondition = "close_above" // trigger when candle Close exceeds target AlertConditionCloseBelow AlertCondition = "close_below" // trigger when candle Close drops below target ) type Alert struct { ID AlertID UserID UserID Price decimal.Decimal Condition AlertCondition Instrument Instrument Timeframe string // non-empty for close_above / close_below; provider.KlineInterval value }