行情

刪除分組

DELETEhttps://openapi.longbridge.com/v1/watchlist/groups

鑑權

簽名方式:每個請求用 App Key / Secret 簽名。請求頭如下:

名稱類型必填說明
Authorizationstring · header必填OpenAPI 後台 上的賬戶 Access Token,作為原始 token 傳入(不帶 Bearer 前綴),並參與簽名計算。
X-Api-Keystring · header必填你的 App Key。
X-Timestampstring · header必填請求時間戳,單位秒(Unix 時間)。
X-Api-Signaturestring · header必填HMAC-SHA256 簽名。格式:HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=。
行情權限要求免費

開通 OpenAPI 後自動獲得,無需額外購買。

刪除自選股分組

>_ CLI
# delete a watchlist group by ID (get ID from: longbridge watchlist)
longbridge watchlist delete <id>

請求

查詢參數

名稱類型必填說明
idinteger必填分組 ID,例如 `10086`
purgeboolean必填是否清除分組下的股票 為 `true`,則此分組下的股票將被取消關註 為 `false`,則此分組下的股票會保留在 `全部` 分組中

響應

響應 JSON 示例

{
  "code": 0
}

錯誤碼

參見錯誤碼文檔。