Sandbox version
For experimental use only. Proceed with caution.
CEX
Get a 24h sparkline price series for a CEX asset/base pair
get
/cex/sparkline
operationId: cex-sparkline

Returns up to 96 hourly closing prices (default 24) for the given (asset, base) pair, ordered oldest → newest. Sourced from the cross-exchange consensus view cex_consensus_ohlcv_1h so each point is one consensus close per hour. Compact shape is intended for sparkline thumbnails; for full OHLCV use /cex/ohlcv instead.

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>`.
Query Parameters
NameTypeDefaultDescription
asset
required
string
Asset symbol (e.g. `XRP`).
base
string"USD"
points
integer24
Responses
200
application/json
Successful response
FieldTypeDescription
asset
string
Echoed asset symbol.
base
string
Echoed base currency.
points
number[]
Hourly closing prices ordered oldest → newest. Empty when no data exists in the window.
Example
Json
{
  "asset": "XRP",
  "base": "USD",
  "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": []
}
404
application/json
Not found
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": "NOT_FOUND",
  "message": "Not found",
  "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": []
}