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.
Click to show internal directories.
Click to hide internal directories.