Skip to main content

Delete watched 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 MethodDELETE
HTTP URL/v1/watchlist/groups

Parameters

Content-Type: application/json; charset=utf-8

NameTypeRequiredDescription
idintegerYESGroup ID, for example 10086.
purgebooleanYESWhether 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

StatusDescriptionSchema
200SuccessNone
500Internal errorNone