获取价格提醒列表
获取当前用户的所有价格提醒,支持按标的筛选。
SDK Links
Parameters
SDK 方法参数。
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | 否 | 按证券代码筛选,例如 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 | 成功 | AlertListResponse |
| 400 | 请求错误 | None |
Schemas
AlertListResponse
| Name | Type | Required | Description |
|---|---|---|---|
| lists | object[] | true | 按标的分组的提醒列表,见 AlertSymbolGroup |
AlertSymbolGroup
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | true | 证券代码 |
| code | string | false | 股票代码 |
| market | string | false | 市场 |
| name | string | false | 证券名称 |
| price | string | false | 最新价 |
| chg | string | false | 当日涨跌额 |
| p_chg | string | false | 当日涨跌幅 |
| product | string | false | 产品类型 |
| indicators | object[] | false | 价格提醒列表,见 AlertItem |
AlertItem
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | true | 提醒 ID |
| indicator_id | string | false | 条件:1=价格上涨,2=价格下跌,3=涨幅,4=跌幅 |
| enabled | boolean | false | 是否启用 |
| frequency | integer | false | 触发频率:1=每日,2=每次,3=一次 |
| scope | integer | false | 范围 |
| text | string | false | 显示文本 |
| state | integer[] | false | 触发状态标志 |
| value_map | object | false | 触发值(如 {"price":"400"} 或 {"chg":"5"}) |

