跳到主要內容

删除自选股分组

删除自选股分组

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
idintegerYES分组 ID,例如 10086
purgebooleanYES是否清除分组下的股票
true,则此分组下的股票将被取消关注
false,则此分组下的股票会保留在全部分组中

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
200返回成功None
500内部错误None