XRPL
Get XRPL DEX trades by IDs (batch)
post
/xrpl/batch
operationId: xrpl-getByIds

Batch lookup for trade events. Accepts up to 100 trade UUIDs per request and returns matching rows; unmatched ids are silently dropped.

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>`.
Request Body
application/json
required
FieldTypeDescription
ids
required
string[]
Trade UUIDs to resolve. Max 100 per request. Unmatched ids are silently omitted.
Example
Json
{
  "ids": [
    "00000000-0000-0000-0000-000000000000"
  ]
}
Responses
200
application/json
Successful response
FieldTypeDescription
items
object[]
Resolved trades. Unmatched ids are silently omitted.
items[].id
string
items[].tradePairId
string
items[].txHash
string
items[].ledgerIndex
integer
items[].timestamp
string
items[].takerAddress
string
items[].baseAmount
string
items[].quoteAmount
string
items[].price
string
items[].createdAt
string
items[].tradePair
object
Trade pair the trade belongs to.
items[].tradePair.id
string
items[].tradePair.baseCurrency
string
items[].tradePair.baseIssuer
object
items[].tradePair.quoteCurrency
string
items[].tradePair.quoteIssuer
object
items[].tradePair.createdAt
string
items[].tradePair.updatedAt
string
Example
Json
{
  "items": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "tradePairId": "00000000-0000-0000-0000-000000000000",
      "txHash": "string",
      "ledgerIndex": 0,
      "timestamp": "string",
      "takerAddress": "string",
      "baseAmount": "string",
      "quoteAmount": "string",
      "price": "string",
      "createdAt": "string",
      "tradePair": {
        "id": "00000000-0000-0000-0000-000000000000",
        "baseCurrency": "string",
        "baseIssuer": "string",
        "quoteCurrency": "string",
        "quoteIssuer": "string",
        "createdAt": "string",
        "updatedAt": "string"
      }
    }
  ]
}
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": []
}
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": []
}