Account

Alerts

GEThttps://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=.

Get all price alerts for the current user, with optional filtering by symbol.

>_ CLI
longbridge alert
longbridge alert TSLA.US

Request

Query parameters

NameTypeRequiredDescription
symbolstringOptionalFilter by security symbol, e.g. `TSLA.US`

Response

Response properties

NameTypeRequiredDescription
listsobject[]OptionalAlert groups per security
└ symbolstringOptionalSecurity symbol
└ chgstringOptionalDay change amount
└ pricestringOptionalLatest price
└ p_chgstringOptionalDay change percentage
└ namestringOptionalSecurity name.
└ marketstringOptionalMarket
└ codestringOptionalTicker code
└ indicatorsobject[]OptionalAlert indicators
└ ∟ idstringOptionalAlert ID
└ ∟ indicator_idstringOptionalCondition: `1`=price_rise, `2`=price_fall, `3`=pct_rise, `4`=pct_fall
└ ∟ frequencyintegerOptionalFrequency: `1`=daily, `2`=every_time, `3`=once
└ ∟ enabledbooleanOptionalWhether the alert is active
└ ∟ textstringOptionalDisplay text
└ ∟ scopeintegerOptionalScope
└ ∟ value_mapobjectOptionalTrigger value (e.g. `{"price":"400"}` or `{"chg":"5"}`)
└ ∟ ∟ pricestringOptionalLatest price
└ ∟ statearrayOptionalTrigger state flags
└ productstringOptionalProduct type

Response JSON example

{
  "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": "Price rises to 400",
            "state": [
              1
            ],
            "value_map": {
              "price": "400"
            }
          }
        ]
      }
    ]
  }
}

Error code

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