Quote

Watchlist Groups

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

Get Watchlist groups

>_ CLI
# list all watchlist groups and their symbols
longbridge watchlist

Request

This endpoint takes no request parameters.

Response

Response properties

NameTypeRequiredDescription
groupsobject[]OptionalGroups
└ idintegerRequiredGroup ID
└ namestringRequiredName
└ securitiesobject[]RequiredSecurity

Response JSON example

{
  "code": 0,
  "data": {
    "groups": [
      {
        "id": 28020,
        "name": "all",
        "securities": [
          {
            "symbol": "700.HK",
            "market": "HK",
            "name": "Tencent",
            "watched_price": "364.4",
            "watched_at": 1652855022,
            "is_pinned": true
          }
        ]
      }
    ]
  }
}

Error code

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