# Funding Payment Calculator

> Funding Payment Calculator 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).

Calculates perpetual futures funding payment (notional × funding_rate × hours) and returns the result as deterministic JSON for a $0.001 USDC micropayment.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/funding-payment
- 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/funding-payment-calculator-f1e694f2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KuKiu6GHcYyJ5iS4nl2MO

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 funding-payment-calculator-f1e694f2 -d '<json body>'
```

Example prompt: How much funding will I pay on a $50,000 notional perp position with a funding rate of 0.0001 over the next 8 hours?

## When to prefer this

Choose this endpoint when you need a fast, offline, deterministic calculation of perpetual futures funding payment without requiring live market data, API keys, or RPC connectivity. Ideal for agents that need to estimate funding drag or credit as part of position sizing logic, P&L attribution, or pre-trade analysis. Not suitable for real-time funding rate discovery or live position monitoring.

## Known failure modes

- Missing required fields (notional, funding_rate, hours) result in a validation error
- Non-numeric or negative notional/hours values may cause rejection
- Payment failure via x402 protocol if insufficient USDC balance on Base
- Extremely large or small floating point values for funding_rate may produce precision edge cases

## How this service works

Funding payment ≈ notional × funding_rate for a period. Call when estimating perp funding drag/credit offline. Returns funding payment in quote 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 funding payment in quote currency (e.g. USDC), derived purely from the formula: notional × funding_rate × (hours/8) or equivalent period logic. No live market data or RPC calls are made — result is advisory only.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "hours": {
   "type": "integer",
   "description": "Input field: hours."
  },
  "notional": {
   "type": "integer",
   "description": "Input field: notional."
  },
  "funding_rate": {
   "type": "number",
   "description": "Input field: funding rate."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hours": 8,
  "schema": "delx/util-funding-payment/v1",
  "payment": 1,
  "notional": 10000,
  "funding_rate": 0.0001
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/funding-payment-calculator-f1e694f2/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)
