# Fee Quote

> Fee Quote 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 pre-trade fee amount for a sized order using notional × fee_rate arithmetic, returning the fee in quote units.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/fee-quote
- 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/fee-quote-2247bb7d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pEjVQDP5frBF85tu6OeI-

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 fee-quote-2247bb7d -d '<json body>'
```

Example prompt: What's the fee on a $25,000 notional order at a 0.03 fee rate? I need the exact fee amount before I decide whether to place the trade.

## When to prefer this

Use this endpoint when you need a fast, deterministic, local fee estimate for a maker/taker style order before submission. Prefer it over live exchange fee calculators when you already know the fee rate and need a reliable, offline arithmetic result without API keys, market data, or RPC calls. It is ideal for pre-trade checks inside automated trading agents where latency and determinism matter.

## Known failure modes

- Missing required fields (notional or fee_rate) returns a validation error
- Non-numeric or negative values for notional or fee_rate may produce an error or unexpected result
- Payment failure via x402 (insufficient USDC balance) prevents execution
- Extremely large notional values may cause precision issues in floating-point arithmetic

## How this service works

Fee amount = notional × fee_rate for maker/taker style quotes. Call when pre-trade fee drag estimates on a sized order. Returns fee amount in quote units 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

A deterministic JSON response containing the computed fee amount in quote units, calculated as notional × fee_rate. No external data sources are consulted — the result is pure local arithmetic.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fee_rate": {
   "type": "number",
   "description": "Input field: fee rate."
  },
  "notional": {
   "type": "integer",
   "description": "Input field: notional."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "fee": 0.5,
  "schema": "delx/util-fee-quote/v1",
  "fee_rate": 0.0005,
  "notional": 1000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fee-quote-2247bb7d/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)
