# SignalHarness DeFi Liquidation Threshold Analyzer

> SignalHarness DeFi Liquidation Threshold Analyzer is a paid API for AI agents from signalharness.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-16).

Analyzes caller-supplied DeFi position data to determine liquidation thresholds and surface relevant warnings

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/defi_liquidation_threshold/invoke
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signalharness-defi-liquidation-threshold-analyzer-13e52c07
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kZYmVPOu0ovlYhDQUK3Sy

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-liquidation-threshold-analyzer-13e52c07 -d '<json body>'
```

Example prompt: Analyze this DeFi lending position and tell me what the liquidation threshold is: I have 2 ETH as collateral at a current price of $3,200, and I've borrowed 4,000 USDC against it on Aave — am I near liquidation and what are any warnings?

## When to prefer this

Choose this endpoint when you need a fast, per-call AI-powered analysis of a DeFi position's liquidation threshold without building your own on-chain math. Particularly useful for agents managing lending positions across multiple protocols where a natural-language or structured text description of the position is easier to supply than raw on-chain data. At $0.01 USDC per call via x402 micropayment, it is cost-effective for high-frequency monitoring or one-off checks. Prefer this over raw smart contract calls when the position data is already expressed in natural language or when you need warnings and reasoning alongside the numeric threshold.

## Known failure modes

- Malformed or empty liquidation_threshold_request string returns a validation error
- Insufficient or ambiguous position data in the request string may produce low-confidence or incomplete threshold output
- Payment failure on the x402 micropayment layer prevents execution
- Network issues on Base (eip155:8453) may cause settlement failures
- Request string exceeding 65,536 characters is rejected
- Missing required fields in the position description may result in warnings rather than a definitive threshold

## 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 liquidation threshold value, a list of any warnings about the position or input data, the evidence scope (caller_supplied_data), and a full execution receipt including payment ID, network (Base/eip155:8453), latency metrics, result hash, and service metadata for auditability.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "replay": false,
  "result": {
   "warnings": [
    "This is not a liquidation prediction or live protocol check."
   ],
   "service_id": "defi_liquidation_threshold",
   "evidence_scope": "caller_supplied_data",
   "liquidation_threshold": "{\"collateral_value\":\"200\",\"current_debt\":\"100\",\"distance_to_threshold\":\"60\",\"maximum_debt_at_threshold\":\"160\"}"
  },
  "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_liquidation_threshold",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "10000",
   "resultSha256": "4fd21d6bf2854ed248458710c258cdd437460d0de2756cdaab894d8207382a17",
   "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-liquidation-threshold-analyzer-13e52c07/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)
