創建價格提醒
為指定證券創建價格提醒,當價格高於或低於目標價時觸發通知。
longbridge alert add TSLA.US --price 300 --direction rise
longbridge alert add AAPL.US --price 150 --direction fallSDK Links
Parameters
SDK 方法參數。
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | 是 | 證券代碼,例如 TSLA.US |
| price | string | 是 | 目標價格 |
| direction | string | 是 | 提醒方向:rise(上漲)或 fall(下跌) |
| frequency | string | 否 | 觸發頻率:once(僅一次,默認)或 every(每次) |
Request Example
Response
Response Example
json
{
"code": 0,
"message": "success",
"data": {
"id": 486469
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | 成功 | CreateAlertResponse |
| 400 | 請求錯誤 | None |
Schemas
CreateAlertResponse
| Name | Type | Required | Description |
|---|---|---|---|
| id | int64 | true | 新創建提醒的 ID |

