get_order_book
Retrieve the top 100 bid and ask prices for a trading pair, aggregated by price level. Use this order book data to assess liquidity and estimate slippage before placing an order.
Instructions
Return the top 100 bids and asks for a trading pair, aggregated by price level. Public endpoint, no auth required. Use this to assess available liquidity and likely slippage before sizing an order; use get_ticker for a simple price quote or list_trades for recent execution flow.
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": {
"pair": "<pair>"
},
"name": "get_order_book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | Yes | Trading pair using Luno's symbol convention (e.g. XBTZAR for BTC/ZAR, ETHZAR, XBTEUR). BTC is automatically rewritten to XBT. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asks | Yes | ||
| bids | Yes | ||
| timestamp | Yes |