热门搜索股票
GET/api/v1.0/quote/search-hot-stocks获取全市场实时搜索热股排行列表。 返回包含:标的代码(code)、市场(market)、名称(name / sc_name / tc_name)与证券类型(sec_type)。 综合成交/量比热度榜请用 quote.rank.hot_list;搜索热点词条请用 quote.search_hot_topics。
请求参数
| 参数 | 类型 | 位置 | 必填 | 说明 |
|---|---|---|---|---|
market | string | 查询 | 否 | 市场过滤,默认 US |
count | int | 查询 | 否 | 返回条数,默认 10,最大 50 |
请求示例
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/search-hot-stocks?market=1&count=1' \
-H 'Authorization: Bearer <AccessToken>' | jq响应参数
| 参数 | 类型 | 说明 |
|---|---|---|
data.items | object[] | |
data.items[].code | string | 标的代码,例: US.TSLA |
data.items[].market | string | 市场代码 |
data.items[].name | string | 英文名称 |
data.items[].sc_name | string | 简体中文名称 |
data.items[].tc_name | string | 繁体中文名称 |
data.items[].sec_type | integer | 证券类型 |
错误码
| 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": [
{
"code": "example",
"market": "example",
"name": "example",
"sc_name": "example",
"tc_name": "example",
"sec_type": 0
}
]
}
}