# Delx Commerce Peg Deviation BPS Calculator

> Delx Commerce Peg Deviation BPS 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 deviation of an observed price from a target peg price, expressed in basis points (BPS).

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/peg-deviation-bps?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-peg-deviation-bps-calculator-ad935420
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sQI_ODq99bPgCiOYpHNEP

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-peg-deviation-bps-calculator-ad935420 -d '<json body>'
```

Example prompt: Calculate how many basis points USDC is deviating from its $1.00 peg given the current observed price of $0.9980.

## When to prefer this

Use this endpoint when you need a precise, mathematically verified BPS deviation from a peg price without setting up any account or subscription. It is ideal for DeFi agents, stablecoin monitoring bots, or risk management pipelines that need a lightweight, pay-per-call computation with verifiable delivery over USDC on Base or Solana.

## Known failure modes

- Missing required 'peg' or 'price' fields returns a validation error
- Division-by-zero edge case if peg is set to 0
- Payment failure via x402 protocol results in a 402 response and no computation
- Extremely large or malformed numeric inputs may return unexpected floating-point results

## 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 schema identifier ('delx/util-peg-deviation-bps/v1') and the computed deviation value in basis points as a floating-point number. Negative values indicate the observed price is below peg; positive values indicate it is above peg.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "peg": {
   "type": "number",
   "description": "Target peg price (usually 1.0)"
  },
  "price": {
   "type": "number",
   "description": "Observed price"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "schema": "delx/util-peg-deviation-bps/v1",
  "deviation_bps": -20.00000000000002
 }
}
```

## More

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