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.
Delete watched group
# delete a watchlist group by ID (get ID from: longbridge watchlist)
longbridge watchlist delete <id>
Request
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Group ID, for example `10086`. |
purge | boolean | Required | Whether to clear the securities in the group. If set to `true`, the securities in the group will be unfollowed. If set to `false`, the securities in the group will remain in the `All` group. |
Response
Response JSON example
{
"code": 0
}Error code
See the Error Codes page for the full list of error codes.