jsontypes

package
v0.24.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2026 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertItem

type AlertItem struct {
	ID          string          `json:"id"`
	IndicatorID string          `json:"indicator_id"`
	Enabled     bool            `json:"enabled"`
	Frequency   int             `json:"frequency"`
	Scope       int             `json:"scope"`
	Text        string          `json:"text"`
	State       []int           `json:"state"`
	ValueMap    json.RawMessage `json:"value_map"`
}

AlertItem is a single price-alert configuration.

type AlertList

type AlertList struct {
	Lists []*AlertSymbolGroup `json:"lists"`
}

AlertList is the top-level response from GET /v1/notify/reminders.

type AlertSymbolGroup

type AlertSymbolGroup struct {
	// Symbol is the security identifier (e.g. "700.HK").
	// The API returns a counter_id; the Go layer stores it as the symbol string.
	Symbol     string           `json:"symbol"`
	Code       string           `json:"code"`
	Market     string           `json:"market"`
	Name       string           `json:"name"`
	Price      *decimal.Decimal `json:"price"`
	Chg        *decimal.Decimal `json:"chg"`
	PChg       *decimal.Decimal `json:"p_chg"`
	Product    string           `json:"product"`
	Indicators []*AlertItem     `json:"indicators"`
}

AlertSymbolGroup holds all alert items for a single security.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL