x402
utility

Compute mid price and bid-ask spread in basis points — call when computing mid and bid-ask spread in basis points. Use on caller-supplied ticks/returns when agents need signal prep without a licensed live market feed (ottoai-class demand, first-party transform). Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web search, or media generation. Results are advisory; the caller owns authorization and production controls.

post/api/v1/x402/spread-bps

Request

  • Base URL: https://api.delx.ai
  • URL: https://api.delx.ai/api/v1/x402/spread-bps
  • Auth: none declared

Request body

bidnumber required

Bid price for spread calculation.

asknumber required

Ask price for spread calculation.

Response

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

schemastring
bidnumber
asknumber
midnumber
spreadnumber
spread_bpsnumber

Changes

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