删除自选股分组
删除自选股分组
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 | 分组 ID,例如 10086 |
| purge | boolean | YES | 是否清除分组下的股票 为 true,则此分组下的股票将被取消关注为 false,则此分组下的股票会保留在全部分组中 |
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 | 返回成功 | None |
| 500 | 内部错误 | None |