# Delx Commerce — Basis Points Calculator

> Delx Commerce — Basis Points 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 basis percentage (spread) between a spot price and a futures price for a given asset

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/basis-pct?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-basis-points-calculator-c97d65ac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qlUBBP9o0dm0QmVtGfuP-

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-basis-points-calculator-c97d65ac -d '<json body>'
```

Example prompt: What's the basis percentage between a spot price of 100 and a futures price of 101.5?

## When to prefer this

Choose this endpoint when you need a fast, cheap, deterministic computation of basis percentage between two price levels — especially in an agentic pipeline that already uses USDC on-chain micropayments via x402. Ideal when you want verifiable, pay-per-result pricing with no subscription or signup overhead. Prefer over building your own formula when auditability and on-chain payment receipts matter.

## Known failure modes

- Missing required fields (spot or future) returns a 4xx error
- Spot value of zero causes division-by-zero or undefined behavior
- Non-numeric input types cause schema validation failures
- Payment failure over x402 protocol blocks the request before computation
- Negative prices may produce unexpected or undefined results

## How this service works

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

## Output

Returns a JSON object containing the original spot and futures prices echoed back, the schema identifier (delx/util-basis-pct/v1), and the computed basis_pct as a floating-point number representing the percentage difference of the futures price relative to the spot price. For example, spot=100, future=101.5 yields basis_pct=1.5.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "spot": {
   "type": "integer",
   "description": "Input field: spot."
  },
  "future": {
   "type": "number",
   "description": "Input field: future."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "spot": 100,
  "future": 101.5,
  "schema": "delx/util-basis-pct/v1",
  "basis_pct": 1.5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-basis-points-calculator-c97d65ac/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)
