某数字货币的机构持仓列表
GET/api/v1.0/quote/crypto/institution-holding/list获取某数字货币的机构持仓列表。 持币数量与增减持以币为单位,占比为百分数。institution_id 为机构 ID。
请求参数
| 参数 | 类型 | 位置 | 必填 | 说明 |
|---|---|---|---|---|
code | string | 查询 | 是 | 数字货币代码,如 CC.BTC |
institution_type | int | 查询 | 否 | 机构类型,不传返回全部 |
page_flag | string | 查询 | 否 | 翻页标记。首页不传或传空串;下一页回传上一页响应 pagination.page_flag。只有 pagination.completed 为 true 时停止 |
page_size | int | 查询 | 否 | 条数,默认 20,最小 1,最大 200。 |
请求示例
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/crypto/institution-holding/list?code=US.AAPL' \
-H 'Authorization: Bearer <AccessToken>' | jq响应参数
| 参数 | 类型 | 说明 |
|---|---|---|
data.items | object[] | |
data.items[].institution_id | int | 机构 ID |
data.items[].institution_type | int | 机构类型 |
data.items[].holding_count | number | 持币数量 |
data.items[].holding_change | number | 增减持数量 |
data.items[].holding_ratio | string | 占供应量比例(百分数) |
data.items[].holding_value | string | 持币市值,美元 |
pagination.total | int | |
pagination.completed | bool | 是否已到末页。只有 true 时停止翻页 |
pagination.page_flag | string | 下一页标记。completed 为 false 时回传为下一次请求的 page_flag;末页为空串 |
错误码
| ret_code | error.code | 说明 |
|---|---|---|
| 0 | — | 成功 |
| -3 | invalid_parameter | 参数不合法 |
| -8 | unsupported | 不支持 |
| -10 | no_data | 没有数据 |
响应示例
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"items": [
{
"institution_id": 0,
"institution_type": 0,
"holding_count": 1.2,
"holding_change": 1.2,
"holding_ratio": "example",
"holding_value": "example"
}
]
},
"pagination": {
"page_flag": "",
"completed": true,
"total": 0
}
}