Quote
Authorization
Signed mode: every request is signed with your App Key/Secret. Header set:
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string · header | Required | The account Access Token from the OpenAPI dashboard — passed as the raw token (no Bearer prefix) and included in the signature calculation. |
X-Api-Key | string · header | Required | Your App Key. |
X-Timestamp | string · header | Required | Request timestamp in seconds (Unix epoch). |
X-Api-Signature | string · header | Required | HMAC-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
# create a new watchlist group
longbridge watchlist create "My Portfolio"
# create another watchlist group
longbridge watchlist create "Tech Stocks"
Request
Request body
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Required | Watchlist group name. |
securities | array | Optional | Optional list of security symbols to pre-populate the group, e.g. `["AAPL.US","700.HK"]`. |
Response
Response properties
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Optional | Group ID |
Response JSON example
{
"code": 0,
"data": {
"id": 10086
}
}Error code
See the Error Codes page for the full list of error codes.