搜索
搜索资讯、社区内容或标的相关讨论。包含两个子接口: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,可选 |