# Delx Commerce — Impermanent Loss Fee Breakeven Calculator

> Delx Commerce — Impermanent Loss Fee Breakeven 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).

Calculates the fee fraction a liquidity provider needs to earn in order to break even against impermanent loss for a given price ratio change.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/il-fee-breakeven?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-impermanent-loss-fee-breakeven-calculator-be4939e2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U0vEfrBEO0IQgl8WcAL52

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-impermanent-loss-fee-breakeven-calculator-be4939e2 -d '<json body>'
```

Example prompt: What fee fraction do I need to break even on impermanent loss if the new price is 1.5 times the old price — so a price ratio of 1.5?

## When to prefer this

Use this endpoint when you need a quick, precise, on-demand computation of the impermanent loss breakeven fee fraction for a given price ratio — particularly in DeFi agent workflows evaluating LP positions, AMM strategies, or yield farming profitability. It is pay-per-result with no signup, making it ideal for agents that need occasional one-off IL math without integrating a full financial analytics platform.

## Known failure modes

- Missing or invalid price_ratio (non-numeric or absent) may return a 400 or error response
- Price ratio of exactly 1.0 (no price change) may return 0 or near-zero fee fraction — trivially correct but may confuse callers
- Negative or zero price ratios are mathematically undefined and likely cause errors
- Payment failure via x402 protocol will block the computation from executing

## 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 `fee_fraction_needed` field (a decimal number, e.g. 0.0202) representing the fraction of pool value that must be earned in trading fees for a liquidity provider to break even against impermanent loss at the given price ratio. Also includes a schema identifier string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "price_ratio": {
   "type": "number",
   "description": "New/old price ratio for IL math"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "schema": "delx/util-il-fee-breakeven/v1",
  "fee_fraction_needed": 0.0202041028867288
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-impermanent-loss-fee-breakeven-calculator-be4939e2/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)
