# Delx Spread Bps

> Delx Spread Bps is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Computes the mid price and bid-ask spread in basis points from caller-supplied bid and ask prices

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/spread-bps
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-spread-bps-894af32e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HpTpGhUufIU5uym1T8mZW

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-spread-bps-894af32e -d '<json body>'
```

Example prompt: Calculate the mid price and bid-ask spread in basis points for a bid of 100.25 and an ask of 100.75.

## When to prefer this

Choose this endpoint when you need a lightweight, stateless, deterministic computation of mid price and bid-ask spread in basis points from your own tick or quote data, without requiring a licensed live market feed. Ideal for signal preprocessing pipelines, backtesting, or any scenario where you supply the bid/ask values yourself and want a cheap, fast, reproducible result.

## Known failure modes

- Missing bid or ask field returns a validation error
- Non-numeric bid or ask values cause a parse or type error
- Ask price lower than bid price may produce a negative or nonsensical spread
- Payment failure via x402 prevents execution and returns a 402 response

## How this service works

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 med…

## Output

A deterministic JSON object containing the computed mid price (average of bid and ask) and the bid-ask spread expressed in basis points, calculated from the provided bid and ask prices.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ask": {
   "type": "number",
   "description": "Ask price for spread calculation."
  },
  "bid": {
   "type": "number",
   "description": "Bid price for spread calculation."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ask": 100.5,
  "bid": 100,
  "mid": 100.25,
  "schema": "delx/util-spread-bps/v1",
  "spread": 0.5,
  "spread_bps": 49.8753
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-spread-bps-894af32e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
