{"slug":"api-delx-ai-api-v1-x402-ob-mid-from-levels-87a83b","title":"Compute mid price from bid/ask top-of-book levels","host":"api.delx.ai","method":"POST","resource":"https://api.delx.ai/api/v1/x402/ob-mid-from-levels","category":"market","description":"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. Advisor","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":1253,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"ask":100.2,"bid":100},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"properties":{"body":{"additionalProperties":true,"properties":{"ask":{"description":"Best ask price (top of book)","type":"number"},"bid":{"description":"Best bid price (top of book)","type":"number"}},"required":["bid","ask"],"type":"object"},"bodyType":{"const":"json","type":"string"},"method":{"const":"POST","type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"additionalProperties":true,"description":"Bounded first-party JSON result; input is processed in memory and not retained.","properties":{"ask":{"type":"number"},"bid":{"type":"number"},"mid":{"type":"number"},"schema":{"type":"string"},"spread_abs":{"type":"number"},"spread_bps":{"type":"number"}},"type":"object"}},"required":["input","output"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":1253,"error":null}],"description_full":"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.","last_updated":"2026-09-19T15:55:36.095Z","schemes":["exact"]}