Delete watched group
Delete watched group
SDK Links
Python |
Rust |
Go |
Node.js |
Request
HTTP Method | DELETE |
HTTP URL | /v1/watchlist/groups |
Parameters
Content-Type: application/json; charset=utf-8
Name | Type | Required | Description |
---|---|---|---|
id | integer | YES | Group ID, for example 10086 . |
purge | boolean | YES | 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. |
Request Example
from longport.openapi import QuoteContext, Config
config = Config.from_env()
ctx = QuoteContext(config)
ctx.delete_watchlist_group(10086)
Response
Response Headers
- Content-Type: application/json
Response Example
{
"code": 0
}
Response Status
Status | Description | Schema |
---|---|---|
200 | Success | None |
500 | Internal error | None |