個股目標價曲線
GET/api/v1.0/quote/{code}/research/target-plot獲取個股目標價曲線(收盤價與目標價)。收盤價和目標價均爲實際價格。
請求參數
| 參數 | 類型 | 位置 | 必填 | 說明 |
|---|---|---|---|---|
code | string | 路徑 | 是 | 標的 |
months | int | 查詢 | 否 | 曲線月數,默認 4 |
請求示例
bash
curl -X GET 'https://webapi.futunn.com/api/v1.0/quote/US.AAPL/research/target-plot' \
-H 'Authorization: Bearer <AccessToken>' | jq響應參數
| 參數 | 類型 | 說明 |
|---|---|---|
data.items | object[] | |
data.items[].timestamp | int | 時間,Unix 微秒 |
data.items[].close_price | string | 收盤價 |
data.items[].target_price | string | 目標價,沒有則為 0 |
錯誤碼
| ret_code | error.code | 說明 |
|---|---|---|
| 0 | — | 成功 |
| -3 | invalid_parameter | 參數不合法 |
| -8 | unsupported | 不支持 |
| -10 | no_data | 沒有數據 |
響應示例
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"items": [
{
"timestamp": 1710000000000000,
"close_price": "example",
"target_price": "example"
}
]
}
}