Delete Watchlist Group
Delete watched group
SDK Links
Python | longport.openapi.QuoteContext.delete_watchlist_group |
Rust | longport::quote::QuoteContext#delete_watchlist_group |
Go | QuoteContext.DeleteWatchlistGroup |
Node.js | QuoteContext#deleteWatchlistGroup |
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
python
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
json
{
"code": 0
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | Success | None |
| 500 | Internal error | None |