# Delx Commerce — Basis Annualize

> Delx Commerce — Basis Annualize 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-02).

Calculates the annualized basis (APR) between a spot price and a futures/mark price over a given number of days

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/basis-annualize?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-basis-annualize-61a52d0e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f9HylhHHmxxj4XUTnHvgn

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-annualize-61a52d0e -d '<json body>'
```

Example prompt: BTC spot is $65,000 and the June futures are trading at $66,200 with 45 days to expiry — what's the annualized basis APR on that trade?

## When to prefer this

Use this endpoint when you need a quick, cheap, verifiable computation of annualized basis from raw futures/spot inputs — especially in agent workflows where you want pay-per-result pricing with no API key or subscription required. Prefer this over implementing the formula yourself when auditability or on-chain payment receipts matter, or when running inside an automated trading or monitoring agent that compares basis across multiple instruments.

## Known failure modes

- Missing required fields (days, spot, future) returns a 400 error
- Spot price of zero or negative value is invalid and will be rejected
- Negative days value or zero days causes division error
- Payment not included or insufficient USDC results in 402 Payment Required response
- Extremely large or small floating point values may produce unexpected precision in basis_apr

## 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 with the raw basis ratio (e.g. 0.01 meaning 1% premium) and the annualized basis APR (basis_apr, e.g. 0.1217 meaning ~12.2% annualized yield), along with a schema identifier string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "days": {
   "type": "integer",
   "description": "Days to delivery or horizon"
  },
  "spot": {
   "type": "number",
   "description": "Underlying spot price (>0)"
  },
  "future": {
   "type": "number",
   "description": "Futures/mark price"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "basis": 0.01,
  "schema": "delx/util-basis-annualize/v1",
  "basis_apr": 0.1216666666666667
 }
}
```

## More

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