get_order_book
Retrieves the current order book for a currency pair on the XRPL DEX, displaying live buy and sell offers to assess market depth and liquidity.
Instructions
Get the order book for a currency pair on the XRPL DEX. Shows current buy and sell offers.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"base_currency": "<base_currency>",
"quote_currency": "<quote_currency>"
},
"name": "get_order_book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of offers to return per side (default: 20) | |
| network | No | The XRPL network to query (default: mainnet) | |
| base_issuer | No | The issuer account for the base currency (not needed for XRP) | |
| quote_issuer | No | The issuer account for the quote currency (not needed for XRP) | |
| base_currency | Yes | The base currency code (e.g., "XRP", "USD", "EUR") | |
| quote_currency | Yes | The quote currency code (e.g., "XRP", "USD", "EUR") |