# Delx Commerce — Perpetual Futures Premium Calculator

> Delx Commerce — Perpetual Futures Premium 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 funding rate premium in basis points between a perpetual futures mark price and its underlying index price

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/perp-premium?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-perpetual-futures-premium-calculator-717b481a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-NaNFzpTkcv6HFsn0UPre

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-perpetual-futures-premium-calculator-717b481a -d '<json body>'
```

Example prompt: Calculate the perpetual futures premium in basis points — the mark price is 65200 and the index price is 65050.

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call computation of perpetual futures basis without running the math yourself — ideal for agents or bots that need a trustless, verifiable on-chain-paid result with no subscription or API key. Prefer this over manual calculation when you need a standardized schema output for downstream pipeline consumption.

## Known failure modes

- Missing mark or index fields returns a validation error
- Non-numeric values for mark or index cause a 400-level error
- Payment failure via x402 protocol results in a 402 response requiring USDC payment on Base or Solana
- If mark equals index, premium_bps will be 0 (valid but trivial result)

## 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 a schema identifier ('delx/util-perp-premium/v1') and the computed premium expressed in basis points (e.g. premium_bps: 50), representing how much the mark price deviates from the index price in hundredths of a percent.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mark": {
   "type": "number",
   "description": "Perp mark price"
  },
  "index": {
   "type": "number",
   "description": "Index price"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "schema": "delx/util-perp-premium/v1",
  "premium_bps": 50
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-perpetual-futures-premium-calculator-717b481a/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)
