熱門搜索股票
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
}
]
}
}