單股 ETF 關聯正股
GET/api/v1.0/quote/{symbol}/etf-related-equity查詢單股追蹤(槓桿/反向/期權收益)ETF 所掛鉤的唯一底層正股標的。
請求參數
| 參數 | 類型 | 位置 | 必填 | 說明 |
|---|---|---|---|---|
symbol | string | 路徑 | 是 | 單股 ETF 代碼(路徑參數),例: US.TSLL / US.NVDL |
請求示例
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/US.AAPL/etf-related-equity' \
-H 'Authorization: Bearer <AccessToken>' | jq響應參數
| 參數 | 類型 | 說明 |
|---|---|---|
data.related_code | string | 關聯底層正股代碼 |
data.related_name | 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": {
"related_code": "example",
"related_name": "example"
}
}