獲取價格提醒列表
獲取當前用戶的所有價格提醒,支持按標的篩選。
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"}) |

