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.
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 |