删除自选股分组
删除自选股分组
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 | 分组 ID,例如 10086 |
purge | boolean | YES | 是否清除分组下的股票 为 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
Status | Description | Schema |
---|---|---|
200 | 返回成功 | None |
500 | 内部错误 | None |