getOrderbook
Get the Stellar DEX orderbook for any asset pair, including bids, asks, spread, and midprice, to evaluate market depth and pricing.
Instructions
Get Stellar DEX orderbook for an asset pair with spread and midprice
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": {
"sellingAsset": "<sellingAsset>",
"buyingAsset": "<buyingAsset>"
},
"name": "getOrderbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of orders per side | |
| buyingAsset | Yes | Buying asset: "XLM" or "CODE:ISSUER" (e.g. "USDC:GA5Z...") | |
| sellingAsset | Yes | Selling asset: "XLM" or "CODE:ISSUER" (e.g. "USDC:GA5Z...") |