Mid price
get_mid_priceRead-onlyIdempotent
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. Free: 100 calls/day per client, then 0.002 USDC per call on Sui mainnet, prepaid in batches of about 0.01 USDC (the payment-required response gives an exact amount and a payment_token).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool | Yes | DeepBook pool name BASE_QUOTE, e.g. SUI_USDC (case-insensitive; '/' or '-' also accepted) | |
| payment_tx | No | Only after the free tier: Sui transaction digest of your exact USDC payment for payment_token (see the payment-required response) | |
| payment_token | No | Only after the free tier: the private payment_token from the payment-required response; it holds your prepaid calls |