/cex/latestcex-latestReturns the most recent aggregated price for each (asset, base) pair, computed across all active CEX exchanges using multiple algorithms (PMAP, VWAP, FMAP, SDAP, MMMAP). Optional filters narrow to a specific asset or base; sort/direction reorder the deduplicated set.
| 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 |
|---|---|---|---|
asset | string | ||
base | string | ||
sort | enum<string> | "timestamp" | Available timestampasset |
direction | enum<string> | "desc" | Available ascdesc |
| Field | Type | Description |
|---|---|---|
items | object[] | Latest aggregated prices, one row per (asset, base) pair. |
items[]. | string | Asset symbol (e.g. `XRP`). |
items[]. | string | Base currency (e.g. `USDT`). |
items[]. | integer | Aggregation timestamp, Unix-seconds. |
items[]. | object | Pure Mean Average Price (decimal string). |
items[]. | object | Volume-Weighted Average Price (decimal string). |
items[]. | object | Fixed Mean Average Price (decimal string). |
items[]. | object | Standard Deviation Average Price (decimal string). |
items[]. | object | Middle Median Mean Average Price (decimal string). |
items[]. | object | Confidence-Weighted Average Price (decimal string). Same shape as FMAP but applies the per-exchange confidence score from the static `exchange-weights.ts` registry as `weight²` so high-confidence venues dominate by a square factor. NULL on rows produced before the algorithm was added (pre-migration `0009`). |
items[]. | object | Standard deviation across exchanges (decimal string). |
items[]. | object | Number of exchanges contributing to the aggregate. |
items[]. | object | Total trade volume backing the aggregate (decimal string). |
{
"items": [
{
"asset": "XRP",
"base": "USDT",
"timestamp": 1745798400,
"pmap": "0.5123",
"vwap": "0.5119",
"fmap": "0.5128",
"sdap": "0.5121",
"mmmap": "0.5120",
"cwap": "0.5125",
"standardDeviation": "0.0012",
"exchangeCount": 8,
"totalVolume": "184500.32"
}
]
}| 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": []
}