產業板塊簡介
GET/api/v1.0/quote/industrial-plate/info獲取產業板塊簡介。plate_code 支持板塊代碼或數值 plate_id。 返回 plate_id 與 summary。成分股請用 quote.industrial_plate.stock。
請求參數
| 參數 | 類型 | 位置 | 必填 | 說明 |
|---|---|---|---|---|
plate_code | string | 查詢 | 否 | 板塊代碼,例: HK.LIST1284;與 plate_id 二選一,同時傳時優先 plate_code |
plate_id | int | 查詢 | 否 | 產業板塊數值 ID;與 plate_code 二選一 |
請求示例
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/industrial-plate/info' \
-H 'Authorization: Bearer <AccessToken>' | jq響應參數
| 參數 | 類型 | 說明 |
|---|---|---|
data.plate_id | int | 產業板塊 ID |
data.summary | string | 產業板塊簡介 |
錯誤碼
| ret_code | error.code | 說明 |
|---|---|---|
| 0 | — | 成功 |
| -3 | invalid_parameter | 參數不合法 |
| -8 | unsupported | 不支持 |
| -10 | no_data | 沒有數據 |
響應示例
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"plate_id": 0,
"summary": "example"
}
}