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