/oracles/price-historyoracle-getPriceHistoryReturns the price sample history for a given oracle, ordered by sample time (newest first). The cursor is the ledger index of the last item on the previous page, so pagination is stable even when multiple samples share a timestamp.
| Name | Location | Details |
|---|---|---|
BearerAuth | Authorization header · bearer | JWT issued by the Honeycluster auth service for the `indexer` audience. Present as `Authorization: Bearer <token>`. |
| Name | Type | Default | Description |
|---|---|---|---|
cursor | string | ||
limit | integer | 20 | |
oracleIdrequired | string | Oracle identifier to fetch price history for. |
| Field | Type | Description |
|---|---|---|
items | object[] | Page of results. |
items[]. | string | Parent oracle_id. |
items[]. | string | Base asset code. |
items[]. | string | Quote asset code. |
items[]. | string | Price value as a decimal string, scaled by `scale`. |
items[]. | integer | Decimal scale factor — apply as `assetPrice / 10^scale` to get the human value. |
items[]. | integer | Ledger sequence of this price update. |
items[]. | string | Transaction hash that produced this update. |
items[]. | integer | Ledger close time of the update, Unix-seconds. |
nextCursor | object | Cursor to fetch the next page, or null if this is the last page. |
{
"items": [
{
"oracleId": "string",
"baseAsset": "string",
"quoteAsset": "string",
"assetPrice": "string",
"scale": 0,
"ledgerIndex": 0,
"txHash": "string",
"sampledAt": 1745798400
}
],
"nextCursor": "string"
}| 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": []
}