Skip to content
Price Alerts

Save Indicator Alert

Creates or updates an indicator alert: id 0 creates a new alert; a non-zero id overwrites that alert. It also backs the enable/disable switch in the alert list, in which case send the list item back with enabled changed.

Before creating a security alert, call POST /v1/indicator/notify/supported to confirm the security supports alerts. For a global alert, pass an empty counter_id and set the scope with scope. On failure, show message to the Client and query the alert list again to restore the switch state.

POSThttps://api.lbkrs.com/v1/indicator/notify/setnotify

Request body application/json

idintegerrequired

Alert ID; 0 creates a new alert

counter_idstringrequired

Security ID (counter_id). Pass an empty string for a global alert

indicator_idintegerrequired

Alert indicator ID from POST /v2/indicator/notify/getconfig. Known values: 1 price above, 2 price below, 3 gain exceeds, 4 loss exceeds, 5 turnover rate exceeds, 6 volume exceeds, 7 moving average signal, 8 KDJ signal, 9 MACD signal, 10 open interest exceeds, 11 option volume exceeds. The configuration endpoint is authoritative

frequencyintegerrequired

Alert frequency:

  • 1 - Once per day (alerts on the first trigger of each trading day)
  • 2 - Every time (alerts on every trigger, at most once every 5 minutes)
  • 3 - Once only
Values
1
2
3
scopeinteger

Scope of a global alert, only set for global alerts:

  • 1 - Securities in positions
  • 2 - Securities in the watchlist
enabledbooleanrequired

Whether the alert is enabled

value_mapobjectrequired

Indicator parameters. Keys are the req_key values returned by POST /v1/indicator/notify/getconfig/detail; values are what the Client entered or selected

Responses

HTTP 200The request succeeded. The response body contains the result of the “Save indicator alert” operation.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs