CEX
Batch fetch sparklines for many CEX pairs
post
/cex/sparkline/batch
operationId: cex-sparklineBatch

POST 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: [].

Unlock protected endpoints

Enter your Bearer token once to enable every protected route in this API reference.

HTTP bearer

Saved for this browser tab only. The credential is never sent until you test an endpoint.

Authorizations
NameLocationDetails
BearerAuthAuthorization header · bearerJWT issued by the Honeycluster auth service for the `oracle` audience. Present as `Authorization: Bearer <token>`.
Request Body
application/json
required
FieldTypeDefaultDescription
pairs
required
object[]
Up to 100 (asset, base) pairs to fetch sparklines for.
pairs[].asset
required
string
Asset symbol (e.g. `XRP`).
pairs[].base
string"USD"
Base / quote currency. Defaults to `USD`.
points
integer24
Number of hourly closing-price buckets to return, oldest-first. Defaults to 24 (one day); capped at 96 (four days).
Example
Json
{
  "pairs": [
    {
      "asset": "XRP",
      "base": "USD"
    }
  ],
  "points": 24
}
Responses
200
application/json
Successful response
FieldTypeDescription
items
object[]
One entry per requested pair, in request order. Pairs with no data return `points: []`.
items[].asset
string
items[].base
string
items[].points
number[]
Example
Json
{
  "items": [
    {
      "asset": "string",
      "base": "string",
      "points": [
        0
      ]
    }
  ]
}
400
application/json
Invalid input data
FieldTypeDescription
message
string
The error message
code
string
The error code
issues
object[]
An array of issues that were responsible for the error
issues[].message
string
Example
Json
{
  "code": "BAD_REQUEST",
  "message": "Invalid input data",
  "issues": []
}
401
application/json
Authorization not provided
FieldTypeDescription
message
string
The error message
code
string
The error code
issues
object[]
An array of issues that were responsible for the error
issues[].message
string
Example
Json
{
  "code": "UNAUTHORIZED",
  "message": "Authorization not provided",
  "issues": []
}
403
application/json
Insufficient access
FieldTypeDescription
message
string
The error message
code
string
The error code
issues
object[]
An array of issues that were responsible for the error
issues[].message
string
Example
Json
{
  "code": "FORBIDDEN",
  "message": "Insufficient access",
  "issues": []
}
500
application/json
Internal server error
FieldTypeDescription
message
string
The error message
code
string
The error code
issues
object[]
An array of issues that were responsible for the error
issues[].message
string
Example
Json
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "Internal server error",
  "issues": []
}