資訊與社區

我的討論

GEThttps://openapi.longbridge.com/v1/content/topics/mine

鑑權

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

請求

查詢參數

名稱類型必填說明
pageinteger可選頁碼,默認 1
sizeinteger可選每頁數量,範圍 1~500,默認 50
topic_typestring可選類型過濾,可選 `article`(長文)、`post`(短帖),不傳返回全部

響應

響應欄位

名稱類型必填說明
itemsobject[]可選討論列表
└ idstring可選討論 ID
└ descriptionstring可選純文本摘要
└ authorobject可選作者信息
└ ∟ member_idstring可選作者 member ID
└ ∟ namestring可選作者暱稱
└ ∟ avatarstring可選作者頭像 URL
└ tickersarray可選關聯標的代碼,如 `["AAPL.US", "700.HK"]`
└ hashtagsarray可選討論標籤名稱列表
└ imagesarray可選附圖列表
└ likes_countinteger可選點讚數
└ comments_countinteger可選評論數
└ views_countinteger可選瀏覽數
└ shares_countinteger可選分享數
└ topic_typestring可選內容類型,`article`(長文)或 `post`(短帖)
└ detail_urlstring可選討論詳情頁連結
└ created_atstring可選創建時間,Unix 時間戳(秒)
└ updated_atstring可選最後更新時間,Unix 時間戳(秒)
└ titlestring可選標題(短帖可能為空)
└ bodystring可選Markdown 格式正文

響應 JSON 示例

{
  "code": 0,
  "message": "success",
  "data": {
    "items": [
      {
        "id": "39304657",
        "title": "My Analysis on AAPL",
        "description": "A brief summary of my article...",
        "body": "Full markdown content here...",
        "topic_type": "article",
        "tickers": [
          "AAPL.US"
        ],
        "hashtags": [
          "earnings"
        ],
        "images": [],
        "likes_count": 12,
        "comments_count": 3,
        "views_count": 200,
        "shares_count": 1,
        "license": 1,
        "detail_url": "https://longbridge.com/topics/39304657",
        "author": {
          "member_id": "10086",
          "name": "John",
          "avatar": "https://example.com/avatar.jpg"
        },
        "created_at": "1742000000",
        "updated_at": "1742000000"
      }
    ]
  }
}

錯誤碼

參見錯誤碼文檔。