List Alerts
Get all price alerts for the current user, with optional filtering by symbol.
SDK Links
Parameters
SDK method parameters.
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | NO | Filter by security symbol, e.g. TSLA.US |
Request Example
Response
Response Example
json
{
"code": 0,
"message": "success",
"data": {
"lists": [
{
"symbol": "AAPL.US",
"code": "AAPL",
"market": "US",
"name": "Apple",
"price": "298.87",
"chg": "4.07",
"p_chg": "1.38",
"product": "stock",
"indicators": [
{
"id": "514050",
"indicator_id": "1",
"enabled": true,
"frequency": 2,
"scope": 0,
"text": "价格涨到 400",
"state": [
1
],
"value_map": {
"price": "400"
}
}
]
}
]
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | Success | AlertListResponse |
| 400 | Bad request | None |
Schemas
AlertListResponse
| Name | Type | Required | Description |
|---|---|---|---|
| lists | object[] | true | Alert groups per security, see AlertSymbolGroup |
AlertSymbolGroup
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | true | Security symbol |
| code | string | false | Ticker code |
| market | string | false | Market |
| name | string | false | Security name |
| price | string | false | Latest price |
| chg | string | false | Day change amount |
| p_chg | string | false | Day change percentage |
| product | string | false | Product type |
| indicators | object[] | false | Alert indicators, see AlertItem |
AlertItem
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | true | Alert ID |
| indicator_id | string | false | Condition: 1=price_rise, 2=price_fall, 3=pct_rise, 4=pct_fall |
| enabled | boolean | false | Whether the alert is active |
| frequency | integer | false | Frequency: 1=daily, 2=every_time, 3=once |
| scope | integer | false | Scope |
| text | string | false | Display text |
| state | integer[] | false | Trigger state flags |
| value_map | object | false | Trigger value (e.g. {"price":"400"} or {"chg":"5"}) |

