Quote

Manage Group Securities

PUThttps://openapi.longbridge.com/v1/watchlist/groups

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=.
Quote Permission RequiredFree

Included with OpenAPI activation — no extra purchase needed.

Update watched group

>_ CLI
# add symbols to a group
longbridge watchlist update <id> --add TSLA.US --add AAPL.US
# remove a symbol from a group
longbridge watchlist update <id> --remove NVDA.US
# add and remove at the same time
longbridge watchlist update <id> --add TSLA.US --remove AAPL.US

Request

Request body

NameTypeRequiredDescription
idintegerRequiredWatchlist group ID.
namestringOptionalNew group name.
securitiesarrayOptionalSecurity symbols to add/remove/replace, per `mode`.
modestringRequiredSecurities update mode: `add`, `remove`, or `replace`.

Response

Response JSON example

{
  "code": 0
}

Error code

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