資訊與社區
鑑權
簽名方式:每個請求用 App Key / Secret 簽名。請求頭如下:
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
Authorization | string · header | 必填 | OpenAPI 後台 上的賬戶 Access Token,作為原始 token 傳入(不帶 Bearer 前綴),並參與簽名計算。 |
X-Api-Key | string · header | 必填 | 你的 App Key。 |
X-Timestamp | string · header | 必填 | 請求時間戳,單位秒(Unix 時間)。 |
X-Api-Signature | string · header | 必填 | HMAC-SHA256 簽名。格式:HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=。 |
獲取指定股票的資訊列表。完整資訊流可瀏覽 資訊。
# latest news for Tesla
longbridge news TSLA.US
# latest news for Apple
longbridge news AAPL.US
# latest news for NVDA
longbridge news NVDA.US
請求
路徑參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
symbol | string | 必填 | 股票代碼,使用 `ticker.region` 格式,例如:`AAPL.US` |
響應
響應欄位
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
items | object[] | 可選 | 資訊列表 |
└ id | string | 可選 | 資訊 ID |
└ title | string | 可選 | 標題 |
└ description | string | 可選 | 摘要/描述 |
└ url | string | 可選 | 資訊詳情鏈接 |
└ comments_count | integer | 可選 | 評論數 |
└ likes_count | integer | 可選 | 點贊數 |
└ shares_count | integer | 可選 | 分享數 |
└ published_at | string | 可選 | 發佈時間,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
}
]
}
}錯誤碼
參見錯誤碼文檔。