Batch trend points for sparkline
GET/api/v1.0/quote/macro/indicator-trendBatch trend points for sparkline. indicator_ids is comma-separated, max 50.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
indicator_ids | string | query | yes | Comma-separated indicator IDs |
Example
bash
curl -X GET 'https://webapi.futunn.com/api/v1.0/quote/macro/indicator-trend?indicator_ids=value' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse parameters
| Name | Type | Description |
|---|---|---|
data.items | object[] | |
data.items[].indicator_id | int | Indicator ID |
data.items[].data_time | int | Observation time, Unix microseconds |
data.items[].value | string | Actual value |
Errors
| ret_code | error.code | Description |
|---|---|---|
| 0 | — | Success |
| -3 | invalid_parameter | Missing or invalid parameter |
| -8 | unsupported | Not supported |
| -10 | no_data | No data |
Response example
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"items": [
{
"indicator_id": 0,
"data_time": 1710000000000000,
"value": "example"
}
]
}
}