Skip to main content

Delete watched group

Delete watched group

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