/cex/sparklinecex-sparklineReturns 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.
| Name | Location | Details |
|---|---|---|
BearerAuth | Authorization header · bearer | JWT issued by the Honeycluster auth service for the `oracle` audience. Present as `Authorization: Bearer <token>`. |
| Name | Type | Default | Description |
|---|---|---|---|
assetrequired | string | Asset symbol (e.g. `XRP`). | |
base | string | "USD" | |
points | integer | 24 |
| Field | Type | Description |
|---|---|---|
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. |
{
"asset": "XRP",
"base": "USD",
"points": [
0.512,
0.514,
0.518,
0.515,
0.517,
0.519,
0.52,
0.518
]
}| 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": "NOT_FOUND",
"message": "Not found",
"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": []
}