Versions in this module Expand all Collapse all v0 v0.24.2 Jun 2, 2026 v0.24.1 May 26, 2026 Changes in this version + type AlertCondition int + const AlertConditionPercentFall + const AlertConditionPercentRise + const AlertConditionPriceFall + const AlertConditionPriceRise + type AlertContext struct + func NewFromCfg(cfg *config.Config) (*AlertContext, error) + func NewFromEnv() (*AlertContext, error) + func (c *AlertContext) Add(ctx context.Context, symbol string, condition AlertCondition, ...) error + func (c *AlertContext) Delete(ctx context.Context, alertIDs []string) error + func (c *AlertContext) List(ctx context.Context) (*AlertList, error) + func (c *AlertContext) Update(ctx context.Context, item *AlertItem) error + type AlertFrequency int + const AlertFrequencyDaily + const AlertFrequencyEveryTime + const AlertFrequencyOnce + type AlertItem struct + Enabled bool + Frequency int + ID string + IndicatorID string + Scope int + State []int + Text string + ValueMap json.RawMessage + type AlertList struct + Lists []*AlertSymbolGroup + type AlertSymbolGroup struct + Chg *decimal.Decimal + Code string + Indicators []*AlertItem + Market string + Name string + PChg *decimal.Decimal + Price *decimal.Decimal + Product string + Symbol string