# Delx Commerce — Absolute Spread Calculator

> Delx Commerce — Absolute Spread Calculator is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Computes the absolute spread (ask minus bid) given an ask price and a bid price for a financial instrument

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/spread-abs?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-absolute-spread-calculator-abaccacb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s0LfFtjeLJUJxPT1KlaIq

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-commerce-absolute-spread-calculator-abaccacb -d '<json body>'
```

Example prompt: Calculate the absolute spread for me — the ask is 100.5 and the bid is 99.5.

## When to prefer this

Choose this endpoint when you need a simple, verifiable, pay-per-use absolute spread computation without any signup overhead. Ideal for AI agents operating in financial workflows that require auditable, micropayment-based access to financial utility functions on Base or Solana via USDC.

## Known failure modes

- Missing ask or bid field returns a validation error
- Non-numeric values for ask or bid cause a 400 bad request
- Ask price lower than bid price may return a negative spread or error
- Payment failure via x402 protocol results in a 402 Payment Required response

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing the original ask price, the original bid price, the computed absolute spread (ask minus bid), and a schema version identifier (delx/util-spread-abs/v1).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ask": {
   "type": "number",
   "description": "Input field: ask."
  },
  "bid": {
   "type": "number",
   "description": "Input field: bid."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ask": 100.5,
  "bid": 99.5,
  "schema": "delx/util-spread-abs/v1",
  "spread": 1
 }
}
```

## More

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