Order Book Mid From Levels · api.delx.ai
Compute mid price
Compute mid price from bid/ask top-of-book levels. Call when you have L1 bid and ask and need a mid for marks. Returns mid, spread_abs, and spread_bps as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only, no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.
Sample input
input4 keys
body2 keys
ask100.2
bid100
bodyType"json"
method"POST"
type"http"
inputobject, 4 keysSample response
response6 keys
ask100.2
bid100
mid100.1
schema"delx/util-ob-mid-from-levels/v1"
spread_abs0.20000000000000284
spread_bps19.980019980020266
responseobject, 6 keysTrack record
- Paid calls, last 30 days
- 3
- Buyers, last 30 days
- 3
- Last paid call
Reported by the x402 directory.