Quote

Create Group

POSThttps://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.

Create watched group

>_ CLI
# create a new watchlist group
longbridge watchlist create "My Portfolio"
# create another watchlist group
longbridge watchlist create "Tech Stocks"

Request

Request body

NameTypeRequiredDescription
namestringRequiredWatchlist group name.
securitiesarrayOptionalOptional list of security symbols to pre-populate the group, e.g. `["AAPL.US","700.HK"]`.

Response

Response properties

NameTypeRequiredDescription
idintegerOptionalGroup ID

Response JSON example

{
  "code": 0,
  "data": {
    "id": 10086
  }
}

Error code

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