資訊與社區

個股資訊

GEThttps://openapi.longbridge.com/v1/content/{symbol}/news

鑑權

簽名方式:每個請求用 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
# latest news for Tesla
longbridge news TSLA.US
# latest news for Apple
longbridge news AAPL.US
# latest news for NVDA
longbridge news NVDA.US

請求

路徑參數

名稱類型必填說明
symbolstring必填股票代碼,使用 `ticker.region` 格式,例如:`AAPL.US`

響應

響應欄位

名稱類型必填說明
itemsobject[]可選資訊列表
└ idstring可選資訊 ID
└ titlestring可選標題
└ descriptionstring可選摘要/描述
└ urlstring可選資訊詳情鏈接
└ comments_countinteger可選評論數
└ likes_countinteger可選點贊數
└ shares_countinteger可選分享數
└ published_atstring可選發佈時間,Unix 時間戳(秒)

響應 JSON 示例

{
  "code": 0,
  "message": "success",
  "data": {
    "items": [
      {
        "id": "279528757",
        "title": "Beats cross-industry collaboration breaks the circle with Nike! Apple aims to ignite a new wave of wearable consumer trends, while Nike bets on the narrative of \"sports technology.\"",
        "description": "Apple's Beats has collaborated with Nike to launch a limited edition Powerbeats Pro 2 headphones, featuring Nike's Swoosh logo. The headphones will be available online and at select Apple Stores on March 20, priced at $250. This marks Beats' first collaboration with an external sports brand, signifying further synergy between the two companies in branding and product ecosystems. The headphones feature real-time heart rate tracking and a battery life of up to 45 hours",
        "url": "https://longbridge.com/news/279528757",
        "published_at": "1773805586",
        "comments_count": 0,
        "likes_count": 0,
        "shares_count": 0
      }
    ]
  }
}

錯誤碼

參見錯誤碼文檔。