热门机构预览
GET/api/v1.0/quote/institution/popular获取热门明星机构列表及其代表性重仓股与近期增减持标的预览。 返回包含:机构 ID(institution_id)、机构名称、头像图片链接、代表性持仓股列表(top_holdings)与近期增减持标的列表(recent_changes)。 机构完整列表请用 quote.institution_list;单机构详情请用 quote.institution_profile。
请求参数
| 参数 | 类型 | 位置 | 必填 | 说明 |
|---|---|---|---|---|
market | string | 查询 | 否 | 市场过滤,默认 US |
count | int | 查询 | 否 | 返回热门机构数量,默认 6,最大 20 |
请求示例
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/institution/popular?market=1&count=1' \
-H 'Authorization: Bearer <AccessToken>' | jq响应参数
| 参数 | 类型 | 说明 |
|---|---|---|
data.items | object[] | |
data.items[].institution_id | integer | 机构 ID |
data.items[].institution_name | string | 机构名称,例: Berkshire Hathaway Inc. |
data.items[].picture_url | string | 机构头像链接 |
data.items[].top_holdings | object | 代表性重仓股预览(最多 2 只) |
data.items[].top_holdings[].code | string | 标的代码 |
data.items[].top_holdings[].holding_value | string | 持仓市值(元) |
data.items[].top_holdings[].portfolio_pct | number | 占机构投资组合比例(百分数) |
data.items[].recent_changes | object | 近期代表性增减持标的预览(最多 2 只) |
data.items[].recent_changes[].code | string | 标的代码 |
data.items[].recent_changes[].holding_value | string | 持仓市值(元) |
data.items[].recent_changes[].portfolio_pct | number | 占机构投资组合比例(百分数) |
data.items[].recent_changes[].share_change | string | 变动股数 |
错误码
| ret_code | error.code | 说明 |
|---|---|---|
| 0 | — | 成功 |
| -3 | invalid_parameter | 参数缺失或不在允许范围内 |
| -7 | invalid_symbol | 标的不存在 |
| -8 | unsupported | 市场或品类不支持 |
| -9 | permission_denied | 没有对应权限 |
| -10 | no_data | 没有可返回的数据 |
| -11 | rate_limited | 调用过于频繁 |
响应示例
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"items": [
{
"institution_id": 0,
"institution_name": "example",
"picture_url": "example",
"top_holdings": "example",
"recent_changes": "example"
}
]
}
}