搜索
搜索資訊、社區內容或標的相關討論。包含兩個子接口:find-news(資訊搜索)、find-community(社區搜索)。
find-news(資訊搜索)
GET/api/v1.0/quote/find-news按關鍵詞搜索資訊、公告、研報等內容。
請求參數
| 參數 | 類型 | 必填 | 說明 |
|---|---|---|---|
symbol | string | 是 | 搜索詞,如 騰訊、AAPL、新能源 |
size | int | 否 | 返回條數,默認 10,範圍 1~50 |
news_type | int | 否 | 資訊類型過濾:1=資訊(POST),2=公告(NOTICE),3=研報(REPORT);不傳返回全部 |
sort_type | int | 否 | 排序:1=按閱讀量,2=按時間(最新);不傳由後端決定 |
lang | string | 否 | 語言過濾:zh-CN / zh-HK / en / ja |
請求示例
bash
curl -s "https://webapi.moomoo.com/api/v1.0/quote/find-news?symbol=騰訊&size=3&sort_type=2" | jq響應字段
返回 data[],每元素一條資訊。
| 字段 | 類型 | 說明 |
|---|---|---|
news_id | string | 唯一標識,如 post:26271850 |
news_type | string | 類型:POST=資訊 / NOTICE=公告 / REPORT=研報 |
title | string | 標題(含高亮標籤 <em>) |
publish_time | int | 發佈時間,秒級時間戳 |
url | string | 跳轉鏈接 |
img_url | string | 縮略圖 URL,可選 |
響應示例
json
{
"ret_code": 0,
"ret_msg": "success",
"data": [
{
"news_id": "post:26271850",
"news_type": "POST",
"title": "《新股》禮邦醫藥通過上市聆訊 <em>騰訊</em>(00700.HK)持股近12%",
"publish_time": 1781492706,
"url": "https://news.moomoo.com/post/26271850",
"img_url": "https://example.com/thumb.jpg"
}
]
}find-community(社區搜索)
GET/api/v1.0/quote/find-community按關鍵詞搜索社區討論、話題、直播等內容。
請求參數
| 參數 | 類型 | 必填 | 說明 |
|---|---|---|---|
symbol | string | 是 | 搜索詞 |
size | int | 否 | 返回條數,默認 10,範圍 1~50 |
community_type | int | 否 | 社區類型:1=討論(FEED),2=話題(TOPIC),3=直播(LIVE);不傳全部 |
sort_type | int | 否 | 排序:1=按熱度,2=按時間(最新);不傳由後端決定 |
lang | string | 否 | 語言過濾:zh-CN / zh-HK / en / ja |
請求示例
bash
curl -s "https://webapi.moomoo.com/api/v1.0/quote/find-community?symbol=騰訊&size=3&sort_type=2" | jq響應字段
返回 data[],每元素一條社區內容。
| 字段 | 類型 | 說明 |
|---|---|---|
id | string | 唯一標識 |
community_type | string | FEED=討論 / TOPIC=話題 / LIVE=直播 |
title | string | 標題 |
publish_time | int | 發佈時間,秒級時間戳 |
url | string | 跳轉鏈接 |
img_url | string | 縮略圖 URL,可選 |