# SignalHarness DeFi Concentrated Liquidity Amounts Calculator

> SignalHarness DeFi Concentrated Liquidity Amounts Calculator is a paid API for AI agents from signalharness.ai, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-15).

Calculates token amounts, ranges, and positions for DeFi concentrated liquidity (e.g. Uniswap v3/v4-style) pools given caller-supplied parameters.

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/defi_concentrated_liquidity_amounts/invoke
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signalharness-defi-concentrated-liquidity-amounts-calculator-176768ac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dsYK4GwxH5HfQEP9XQM7b

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 signalharness-defi-concentrated-liquidity-amounts-calculator-176768ac -d '<json body>'
```

Example prompt: Calculate the concentrated liquidity amounts I'd need to open a Uniswap v3-style position on the ETH/USDC pool with a price range from 1800 to 2200 and a target liquidity of 1000 USDC worth — give me the exact token0 and token1 amounts.

## When to prefer this

Choose this endpoint when you need precise, programmatic computation of concentrated liquidity token amounts for DeFi AMM positions (Uniswap v3/v4-style), especially within an agent workflow on Base network. It is preferable over off-chain spreadsheets or manual math when you need an auditable receipt, SHA256 result hash, and deterministic calculation as part of an automated DeFi strategy. Best suited for agents that need to size LP positions, plan rebalances, or validate liquidity inputs before on-chain execution.

## Known failure modes

- Malformed or missing concentrated_liquidity_request field returns a validation error
- Invalid price or tick range values (e.g. lower bound >= upper bound) may produce warnings or errors
- Extremely large input strings (>65536 chars) are rejected
- Network or payment issues on Base may cause failed receipt status
- Ambiguous or incomplete liquidity parameters may result in warnings rather than hard failures

## How this service works

Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.

## Output

Returns a JSON object containing the computed concentrated_liquidity_amounts (token quantities and position data), any warnings about the input (e.g. invalid ranges or edge cases), the service_id confirming which calculation was run, and a full receipt with payment details, execution metadata, latency, and a result SHA256 hash for verification. The evidence_scope field indicates the calculation was performed on caller-supplied data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "concentrated_liquidity_request": {
   "type": "string",
   "maxLength": 65536,
   "minLength": 2
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "replay": false,
  "result": {
   "warnings": [
    "Caller must supply protocol-compatible liquidity and square-root prices."
   ],
   "service_id": "defi_concentrated_liquidity_amounts",
   "evidence_scope": "caller_supplied_data",
   "concentrated_liquidity_amounts": "{\"amount0\":\"16.666666666666666666\",\"amount1\":\"100\",\"region\":\"in_range\"}"
  },
  "status": "succeeded",
  "receipt": {
   "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "usage": [],
   "status": "succeeded",
   "network": "eip155:8453",
   "artifacts": [],
   "endedAtMs": 0,
   "latencyMs": 0,
   "paymentId": "example-payment",
   "receiptId": "example-receipt",
   "requestId": "example-request",
   "serviceId": "defi_concentrated_liquidity_amounts",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "15000",
   "resultSha256": "6747d4548e0f7608e64308d1d466d1f7d3a06d6374abfa80344de46cd0f83ce2",
   "serviceVersion": "1.0.0",
   "settlementReference": "0x0000000000000000000000000000000000000000000000000000000000000000"
  },
  "artifacts": [],
  "requestId": "example-request",
  "executionId": "example-execution"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signalharness-defi-concentrated-liquidity-amounts-calculator-176768ac/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from signalharness.ai](https://www.zero.xyz/host/signalharness.ai/llms.txt)
