Sandbox version
For experimental use only. Proceed with caution.
trades
Fetch hourly close-price sparklines for many tokens in one call
post
/trade/sparkline/batch
operationId: trade-sparklineBatch

POST batch variant of /trade/sparkline. Body: { slugs: [...], points } (max 100 slugs, default 24 hourly buckets); returns per-slug { points: number[] } oldest-first, or { points: [] } when the token has no XRP trade pair. Tokens where the slug is malformed / unknown surface as data: null.

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 `indexer` audience. Present as `Authorization: Bearer <token>`.
Request Body
application/json
required
FieldTypeDefaultDescription
slugs
required
string[]
Array of token slugs in `currency.issuer` form (max 100 per request). Per-slug parse / lookup failures surface as `{ slug, data: null }` so a single bad slug doesn't take down the rest.
points
integer24
Number of hourly buckets per token, oldest-first. Defaults to 24.
Example
Json
{
  "slugs": [
    "string"
  ],
  "points": 24
}
Responses
200
application/json
Successful response
FieldTypeDescription
items
object[]
One entry per input slug, in the same order as the request. Always has the same length as `input.slugs`.
items[].slug
string
The token slug that produced this row (echoed from the request).
items[].data
object
Per-slug response, or `null` when the slug is malformed / unknown / the per-slug query threw.
Example
Json
{
  "items": [
    {
      "slug": "string",
      "data": {
        "points": [
          0.512,
          0.514,
          0.518,
          0.515,
          0.517,
          0.519,
          0.52,
          0.518
        ]
      }
    }
  ]
}
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": []
}