/cex/sparkline/batchcex-sparklineBatchPOST batch variant of /cex/sparkline. Body: { pairs: [{asset, base?}], points } (max 100 pairs, default 24 hourly buckets). Returns per-pair { asset, base, points } oldest-first; pairs with no data surface as points: [].
| Name | Location | Details |
|---|---|---|
BearerAuth | Authorization header · bearer | JWT issued by the Honeycluster auth service for the `oracle` audience. Present as `Authorization: Bearer <token>`. |
| Field | Type | Default | Description |
|---|---|---|---|
pairsrequired | object[] | Up to 100 (asset, base) pairs to fetch sparklines for. | |
pairs[].required | string | Asset symbol (e.g. `XRP`). | |
pairs[]. | string | "USD" | Base / quote currency. Defaults to `USD`. |
points | integer | 24 | Number of hourly closing-price buckets to return, oldest-first. Defaults to 24 (one day); capped at 96 (four days). |
{
"pairs": [
{
"asset": "XRP",
"base": "USD"
}
],
"points": 24
}| Field | Type | Description |
|---|---|---|
items | object[] | One entry per requested pair, in request order. Pairs with no data return `points: []`. |
items[]. | string | |
items[]. | string | |
items[]. | number[] |
{
"items": [
{
"asset": "string",
"base": "string",
"points": [
0
]
}
]
}| Field | Type | Description |
|---|---|---|
message | string | The error message |
code | string | The error code |
issues | object[] | An array of issues that were responsible for the error |
issues[]. | string |
{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}| Field | Type | Description |
|---|---|---|
message | string | The error message |
code | string | The error code |
issues | object[] | An array of issues that were responsible for the error |
issues[]. | string |
{
"code": "UNAUTHORIZED",
"message": "Authorization not provided",
"issues": []
}| Field | Type | Description |
|---|---|---|
message | string | The error message |
code | string | The error code |
issues | object[] | An array of issues that were responsible for the error |
issues[]. | string |
{
"code": "FORBIDDEN",
"message": "Insufficient access",
"issues": []
}| Field | Type | Description |
|---|---|---|
message | string | The error message |
code | string | The error code |
issues | object[] | An array of issues that were responsible for the error |
issues[]. | string |
{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}