資訊與社區

熱門股單

GEThttps://openapi.longbridge.com/v1/sharelists/popular

鑑權

簽名方式:每個請求用 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=。

獲取社區熱門股單列表。

>_ CLI
longbridge sharelist popular --count 10

請求

查詢參數

名稱類型必填說明
countinteger可選返回數量上限,默認 20

響應

響應欄位

名稱類型必填說明
sharelistsobject[]可選用戶自建股單列表,
└ idstring可選股單 ID
└ subscribers_countinteger可選訂閱人數
└ stocks_countinteger可選清單內標的數量。
└ namestring可選標的名稱。
└ descriptionstring可選描述
└ coverstring可選封面圖片 URL
└ created_atstring可選創建時間,Unix 時間戳(秒)
└ this_year_chgstring可選今年以來漲跌幅
└ statusinteger可選運行終態:`succeeded` / `interrupted` / `failed` / `stopped`
└ edited_atstring可選最後編輯時間。
└ digeststring可選簡介。
└ creatorobject可選創建者名稱。
└ ∟ idstring可選股單 ID
└ ∟ namestring可選標的名稱。
└ ∟ avatarstring可選作者頭像 URL
└ ∟ member_idstring可選作者 member ID
└ ∟ scopesobject可選訂閱權限資訊
└ ∟ ∟ followedboolean可選當前用戶是否已關注。
└ ∟ ∟ followingboolean可選是否關注創建者。
└ ∟ ∟ selfboolean可選是否為當前用戶本人。
└ ∟ ∟ blockedboolean可選是否被當前用戶屏蔽。
└ ∟ ∟ special_followingboolean可選是否特別關注。
└ ∟ ∟ be_blockedboolean可選當前用戶是否被屏蔽。
└ ∟ ∟ trade_followingboolean可選是否跟單關注。
└ ∟ profile_idstring可選資料 ID。
└ ∟ group_scopesobject可選分組權限範圍。
└ ∟ ∟ joinedboolean可選是否已加入。
└ ∟ group_memberstring可選是否羣組成員。
└ ∟ descriptionstring可選描述
└ ∟ invite_codestring可選邀請碼。
└ ∟ cert_scopesobject可選認證範圍。
└ ∟ ∟ officialboolean可選是否官方清單。
└ ∟ ∟ cert_Infoobject可選認證信息。
└ ∟ ∟ ∟ labelstring可選標籤。
└ ∟ ∟ ∟ namestring可選標的名稱。
└ ∟ ∟ ∟ descstring可選當前估值描述
└ ∟ ∟ ∟ iconstring可選圖標鏈接
└ ∟ ∟ security_live_infostring可選證券直播信息。
└ ∟ certificationboolean可選認證。
└ stocksarray可選成份股列表,
└ subscribedboolean可選當前用戶是否已訂閱
└ stock_group_idstring可選股票分組 ID。
└ last_read_log_idstring可選最後已讀變更日誌 ID。
└ chgstring可選日漲跌幅
└ group_idstring可選羣組 ID。
└ sharelist_typeinteger可選類型:`0`=普通,`3`=官方,`4`=行業
└ industry_codestring可選行業代碼(行業股單適用)

響應 JSON 示例

{
  "code": 0,
  "message": "success",
  "data": {
    "list": [
      {
        "id": 123,
        "name": "AI Picks",
        "description": "Top AI infrastructure stocks"
      },
      {
        "id": 456,
        "name": "EV Leaders",
        "description": "Electric vehicle sector leaders"
      }
    ]
  }
}

錯誤碼

參見錯誤碼文檔。