Account

Create Alert

POSThttps://openapi.longbridge.com/v1/notify/reminders

Authorization

Signed mode: every request is signed with your App Key/Secret. Header set:

NameTypeRequiredDescription
Authorizationstring · headerRequiredThe account Access Token from the OpenAPI dashboard — passed as the raw token (no Bearer prefix) and included in the signature calculation.
X-Api-Keystring · headerRequiredYour App Key.
X-Timestampstring · headerRequiredRequest timestamp in seconds (Unix epoch).
X-Api-Signaturestring · headerRequiredHMAC-SHA256 signature. Format: HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=.

Create a new price alert for a security when it rises above or falls below a target price.

>_ CLI
longbridge alert add TSLA.US --price 300 --direction rise
longbridge alert add AAPL.US --price 150 --direction fall

Request

Request body

NameTypeRequiredDescription
symbolstringRequiredSecurity symbol, e.g. `TSLA.US`
pricestringRequiredTarget price
directionstringRequiredAlert direction: `rise` or `fall`
frequencystringOptionalTrigger frequency: `once` (default) or `every`

Response

Response properties

NameTypeRequiredDescription
idint64RequiredID of the newly created alert

Response JSON example

{
  "code": 0,
  "message": "success",
  "data": {
    "id": 486469
  }
}

Error code

See the Error Codes page for the full list of error codes.