Skip to content
Price Alerts

Get Indicator Alert Form Configuration

Returns the form configuration of an alert indicator, including input fields (decimal digits, integer digits, unit, placeholder) and selectors (single or multiple choice and option values), for rendering the alert configuration form.

The req_key of each form item is the key in value_map when submitting POST /v1/indicator/notify/setnotify. Selector items can default to the first option.

POSThttps://api.lbkrs.com/v1/indicator/notify/getconfig/detail

Request body application/json

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

tplintegerrequired

Alert template:

  • 0 - Security alert
  • 1 - Global alert
Values
0
1

Responses

HTTP 200The request succeeded. The response body contains the result of the “Get indicator alert form configuration” operation.
Standard response envelopecodemessagedata
dataobjectdata structure
itemsarray<object>

Form items

Child attributes
titlestring

Form item title

req_keystring

Key used in value_map when submitting

formatstring

Form component type:

  • simple-input - Input field
  • tag-select - Tag selector
  • drop-down-select - Drop-down selector
  • flat-select - Flat selector
Values
simple-input
tag-select
drop-down-select
flat-select
input_settingobject

Input settings, used when format is simple-input

Child attributes
digitsinteger

Allowed decimal digits

integerinteger

Allowed integer digits; 0 means no limit

placeholderstring

Placeholder text

unitstring

Unit, such as %

select_settingobject

Selector settings, used when format is a selector component

Child attributes
multiple_selectboolean

Whether multiple choice is allowed; if so, the value in value_map is an array

optionsarray<object>

Options

Child attributes
namestring

Option name

sub_namestring

Option subtitle

valueinteger

Option value written to value_map on submit

Whale Docs