刪除自選股分組
刪除自選股分組
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 |