Mid price
get_mid_priceCalculate mid price, best bid/ask, spread (absolute and bps), and last trade price for a DeepBook pool to support read-only market analysis.
Instructions
Best bid, best ask, mid price and spread (abs and bps) for a DeepBook pool, plus last trade price. Education/information only; not financial advice. Read-only public data, may be delayed or wrong.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool | Yes | DeepBook pool name BASE_QUOTE, e.g. SUI_USDC (case-insensitive; '/' or '-' also accepted) |