# Basis Points to Fraction

> Basis Points to Fraction is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Converts an integer basis points value to its unit-interval decimal fraction (bps / 10000) for use in fee, funding, or slippage calculations.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/bps-to-fraction
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/basis-points-to-fraction-a7b694a0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9KMqk5owJKHKrVn7zb4Z1

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 basis-points-to-fraction-a7b694a0 -d '<json body>'
```

Example prompt: Convert 75 basis points into a unit-interval fraction so I can use it as the slippage tolerance in my fee calculation.

## When to prefer this

Use this endpoint when your downstream math (smart contract, trading engine, or analytics pipeline) requires a unit-interval (0–1) rate rather than a raw basis-points integer. It is ideal when you want a deterministic, server-confirmed conversion without building the arithmetic locally, and when you are already operating within the x402/USDC micropayment infrastructure on Base.

## Known failure modes

- Missing or non-integer bps input returns a validation error
- Negative bps values may produce negative fractions (caller should validate range)
- Payment failure via x402 if USDC balance is insufficient

## How this service works

Convert basis points into a unit-interval fractional rate. Call when fee, funding, or slippage math expects 0–1 fractions not bps. Returns fraction = bps/10000 as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

Returns a deterministic JSON object containing the computed fraction (bps divided by 10000) as a decimal number in the 0–1 unit interval, suitable for direct use in fee, slippage, or funding rate arithmetic.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bps": {
   "type": "integer",
   "description": "Input field: bps."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bps": 25,
  "schema": "delx/util-bps-to-fraction/v1",
  "fraction": 0.0025
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/basis-points-to-fraction-a7b694a0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
