/trade/orderbooktrade-orderbookReturns a live snapshot of the orderbook for the requested pair. Each side of the pair is supplied as either the literal XRP or a currency.issuer tokenSlug. Returns { bids, asks } where each entry carries a normalized price (quote per base in display units, with XRP drops converted to XRP) alongside the raw takerGets/takerPays passthrough. This is a live ledger view and does not hit the local database.
| 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 |
|---|---|---|---|
baserequired | string | Base asset. The price is expressed as quote per one unit of base. | |
quoterequired | string | Quote asset. Priced in units of this asset per base. | |
limit | integer | 50 |
| Field | Type | Description |
|---|---|---|
bids | object[] | Buy orders — offerers holding quote and willing to receive base. |
bids[]. | string | Offerer account (classic XRPL address). |
bids[]. | integer | Offer sequence number. |
bids[]. | string | Quote per base as a decimal string (display units — drops are converted to XRP). |
bids[]. | string | Base-side amount in display units (XRP when base is XRP, IOU/MPT value otherwise). |
bids[]. | string | Quote-side amount in display units. |
bids[]. | string | Raw `quality` field (TakerPays/TakerGets in ledger units). |
bids[]. | string | Estimate of how much of TakerGets the owner still funds. |
bids[]. | object | Raw TakerGets amount from the offer (passthrough for advanced consumers). |
bids[]. | object | Raw TakerPays amount from the offer (passthrough). |
asks | object[] | Sell orders — offerers holding base and willing to receive quote. |
asks[]. | string | Offerer account (classic XRPL address). |
asks[]. | integer | Offer sequence number. |
asks[]. | string | Quote per base as a decimal string (display units — drops are converted to XRP). |
asks[]. | string | Base-side amount in display units (XRP when base is XRP, IOU/MPT value otherwise). |
asks[]. | string | Quote-side amount in display units. |
asks[]. | string | Raw `quality` field (TakerPays/TakerGets in ledger units). |
asks[]. | string | Estimate of how much of TakerGets the owner still funds. |
asks[]. | object | Raw TakerGets amount from the offer (passthrough for advanced consumers). |
asks[]. | object | Raw TakerPays amount from the offer (passthrough). |
{
"bids": [
{
"account": "rExampleBidder1234567890",
"sequence": 4501,
"price": "0.512",
"baseAmount": "1000",
"quoteAmount": "512",
"quality": "512000000",
"ownerFunds": "1000",
"takerGets": {
"currency": "USD",
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
"value": "512"
},
"takerPays": "1000000000"
}
],
"asks": [
{
"account": "rExampleAsker0987654321",
"sequence": 9123,
"price": "0.515",
"baseAmount": "500",
"quoteAmount": "257.5",
"takerGets": "500000000",
"takerPays": {
"currency": "USD",
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
"value": "257.5"
}
}
]
}| 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": []
}