/trade/listtrade-listPaginated, sortable trade list. Uses 1-indexed page + pageSize and returns total / pageCount. All filters are optional — call without any to get the global firehose. Optional pair-side filters: tradePairId (any base/quote), tokenSlug (resolves to the token/XRP pair), mptIssuanceId (resolves to the MPT/XRP pair); tradePairId wins when multiple are supplied. Optional account scopes to a taker. Optional pair-class booleans onlyIOU / onlyMPT / onlyXRP filter on the underlying trade_pairs shape and may be combined (e.g. onlyIOU=true&onlyXRP=true returns IOU/XRP markets only). sort accepts recent (default — alias of timestamp), timestamp, ledger_index, price, base_amount, or quote_amount; sortDir defaults to desc.
| 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 |
|---|---|---|---|
page | integer | 1 | |
pageSize | integer | 20 | |
tradePairId | string | ||
tokenSlug | string | ||
mptIssuanceId | string | ||
account | string | ||
onlyIOU | boolean | ||
onlyMPT | boolean | ||
onlyXRP | boolean | ||
sort | enum<string> | "recent" | Available recenttimestampledger_indexpricebase_amountquote_amount |
sortDir | enum<string> | "desc" | Available ascdesc |
| Field | Type | Description |
|---|---|---|
items | object[] | Items on the current page. |
items[]. | string | UUID — part of the composite PK (id, timestamp). |
items[]. | string | Parent trade_pairs.id. |
items[]. | string | Transaction hash of the trade. |
items[]. | integer | Ledger sequence of the trade. |
items[]. | integer | When the trade executed on-ledger, Unix-seconds. |
items[]. | string | XRPL address that took liquidity. |
items[]. | string | Base asset traded, decimal string. |
items[]. | string | Quote asset traded, decimal string. |
items[]. | string | Execution price (quote / base), decimal string. |
items[]. | object | |
items[]. | integer | Record creation timestamp, Unix-seconds. |
items[]. | object | Trade pair the trade belongs to. |
page | integer | 1-indexed page number of the returned page. |
pageSize | integer | Items per page (echoed from the request). |
total | integer | Total number of items across all pages. |
pageCount | integer | Total number of pages at the requested pageSize. |
{
"items": [
{
"id": "00000000-0000-0000-0000-000000000000",
"tradePairId": "00000000-0000-0000-0000-000000000000",
"txHash": "string",
"ledgerIndex": 0,
"timestamp": 1745798400,
"takerAddress": "string",
"baseAmount": "string",
"quoteAmount": "string",
"price": "string",
"sourceTag": 0,
"createdAt": 1745798400,
"tradePair": {
"id": "00000000-0000-0000-0000-000000000000",
"createdAt": 1745798400,
"updatedAt": 1745798400,
"baseCurrency": "string",
"baseIssuer": "string",
"quoteCurrency": "string",
"quoteIssuer": "string"
}
}
],
"page": 0,
"pageSize": 0,
"total": 0,
"pageCount": 0
}| 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": []
}