/xrpl/sparkline/batchxrpl-sparklineBatchPOST batch variant of /xrpl/sparkline. Body: { tokens: [{currency, issuer}], denomination, points } (max 100 tokens, default 24 hourly buckets, default denomination USD). Returns per-token { currency, issuer, points } oldest-first; tokens with no matching XRPL pair surface as points: []. The 2-hop intermediary (when needed) is server-chosen (USD).
| 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 |
|---|---|---|---|
tokensrequired | object[] | Tokens to fetch sparklines for. Each entry is either `{tokenSlug}` or `{currency, issuer}`. Max 100 per request. | |
denomination | string | "USD" | Defaults to `USD` so a bare-args call returns USD closes via the `XRP/USD` 1-hop bridge per bucket. Pass `XRP` for native IOU/XRP closes with no bridge. Other direct CEX bases (`USDT`, `USDC`) also use 1-hop; any other CEX-tracked asset uses 2-hop via the server-chosen intermediary (USD). |
points | integer | 24 | Number of hourly closing-price buckets to return, oldest-first. Defaults to 24 (one day); capped at 96 (four days). |
{
"tokens": [
{
"tokenSlug": "string"
}
],
"denomination": "USD",
"points": 24
}| Field | Type | Description |
|---|---|---|
items | object[] | One row per requested token. Tokens with no matching pair return `points: []`. |
items[]. | string | |
items[]. | object | |
items[]. | number[] | |
denomination | string |
{
"items": [
{
"currency": "string",
"issuer": "string",
"points": [
0
]
}
],
"denomination": "string"
}| 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": []
}