# SignalHarness DeFi APR/APY Converter

> SignalHarness DeFi APR/APY Converter is a paid API for AI agents from signalharness.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-16).

Converts between APR (Annual Percentage Rate) and APY (Annual Percentage Yield) for DeFi financial calculations, given a natural-language or structured request.

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/defi_apr_apy_convert/invoke
- Price: $0.005/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-apr-apy-converter-85e4ee7f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7WTntVLhnTBX7-lGMHe5w

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-apr-apy-converter-85e4ee7f -d '<json body>'
```

Example prompt: Can you convert a 24% APR compounded daily into its equivalent APY so I can compare it properly against other DeFi staking yields?

## When to prefer this

Choose this endpoint when you need to convert between APR and APY in DeFi or crypto finance contexts and want a natural-language interface rather than doing the math manually. It handles edge cases, compounding frequency nuances, and flags ambiguous inputs with warnings. Ideal for agents comparing yields across protocols that report rates differently.

## Known failure modes

- Ambiguous or unparseable input string — returns warnings field with clarification needed
- Missing compounding frequency — service may assume a default and flag a warning
- Rate value out of realistic range — may return warnings about suspicious inputs
- Malformed JSON or request too short (minLength: 2) — request rejected
- Payment failure on x402 protocol — endpoint returns 402 before processing

## 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 converted APR or APY value, any warnings about the input (e.g. ambiguity or assumptions made), an evidence scope field indicating the data came from caller-supplied input, and a service receipt with payment confirmation details including payment ID, network, amount, and a SHA-256 result hash for verification.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "replay": false,
  "result": {
   "warnings": [
    "Rates are mathematical inputs, not provider offers."
   ],
   "service_id": "defi_apr_apy_convert",
   "evidence_scope": "caller_supplied_data",
   "apr_apy_conversion": "{\"compounds_per_year\":12,\"input_rate_percent\":\"5\",\"mode\":\"apr_to_apy\",\"output_rate_percent\":\"5.116189788173\"}"
  },
  "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_apr_apy_convert",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "5000",
   "resultSha256": "917b6ba6ace9cc4dbdcc25eb5e105263b2e9a41b3bb74b46dc3a27442df5163b",
   "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-apr-apy-converter-85e4ee7f/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)
