# SignalHarness DeFi Liquidity Share Calculator

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

Computes the liquidity share for a given DeFi position or pool context based on caller-supplied data

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/defi_liquidity_share/invoke
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signalharness-defi-liquidity-share-calculator-6675fc75
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Mx6ZjT1h2_rElhIjBZYgd

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-liquidity-share-calculator-6675fc75 -d '<json body>'
```

Example prompt: Can you calculate my liquidity share in this DeFi pool? Here's the position data: I provided 5000 USDC and 2 ETH to a Uniswap v3 pool with total reserves of 1,000,000 USDC and 400 ETH.

## When to prefer this

Use this endpoint when you need a quick, pay-per-call computation of a DeFi liquidity share without maintaining a persistent connection to a blockchain node or indexer. It is suitable for agents that need on-demand LP share estimates from caller-supplied data at low cost ($0.005 USDC), especially when integrating with x402-compatible micropayment flows on Base.

## Known failure modes

- Invalid or malformed liquidity_share_request string returns an error
- Missing required liquidity_share_request field causes a validation failure
- Request string too short (under 2 chars) or too long (over 65536 chars) is rejected
- Ambiguous or insufficient pool data may result in warnings rather than a precise figure
- Payment failure via x402 protocol causes the call to be rejected before execution

## 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 liquidity_share value, any warnings about data quality or assumptions, the evidence_scope indicating the data source was caller-supplied, and a full execution receipt including payment metadata, latency, and a SHA-256 result hash for verification.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "replay": false,
  "result": {
   "warnings": [
    "LP balances and supply are caller supplied."
   ],
   "service_id": "defi_liquidity_share",
   "evidence_scope": "caller_supplied_data",
   "liquidity_share": "{\"share\":\"0.1\",\"share_percent\":\"10\"}"
  },
  "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_liquidity_share",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "5000",
   "resultSha256": "e97f32a0e0f02a9035f7427678bc2d7c950bcc14c7b8e1ef25057ca28f2ac627",
   "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-liquidity-share-calculator-6675fc75/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)
