x402
utility

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.

post/api/v1/x402/ob-mid-from-levels

Request

  • Base URL: https://api.delx.ai
  • URL: https://api.delx.ai/api/v1/x402/ob-mid-from-levels
  • Auth: none declared

Request body

bidnumber required

Best bid price (top of book)

asknumber required

Best ask price (top of book)

Response

Paid utility result. Downstream tool errors are returned as structured result payloads with HTTP 200 after payment succeeds.

schemastring
bidnumber
asknumber
midnumber
spread_absnumber
spread_bpsnumber

Changes

No recorded changes to this operation across all 1 revision of this API.