SDEX order book
stellar_orderbookFetch the Stellar DEX order book for an asset pair to view best bid/ask, mid price, spread, and resting depth within 1% and 5%.
Instructions
Order book of a pair on the Stellar DEX: best bid/ask, mid price, spread and resting depth within 1% and 5%, plus the top levels. Assets can be XLM, a code like USDC (most traded issuer is used and disclosed) or CODE-ISSUER.
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": "<base>",
"counter": "<counter>"
},
"name": "stellar_orderbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Asset being priced, e.g. XLM | |
| levels | No | How many price levels per side to return | |
| counter | Yes | Asset it is priced in, e.g. USDC |