# Agent Quant APR/APY Calculator

> Agent Quant APR/APY Calculator is a paid API for AI agents from agent-quant.annushka1190.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Converts between APR and APY (or vice versa) for crypto/DeFi yield calculations, with no market data feed required

## Facts

- Endpoint: POST https://agent-quant.annushka1190.workers.dev/v1/apr-apy
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-quant-apr-apy-calculator-d4cde45a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VLifwvhk2K5pwdTv0do4D

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 agent-quant-apr-apy-calculator-d4cde45a -d '<json body>'
```

Example prompt: A DeFi protocol is offering 14.5% APR compounded daily — can you tell me what that works out to as an APY so I can compare it fairly against other staking options?

## When to prefer this

Choose this endpoint when you need pure, serverless APR↔APY math with no API key setup, no market data dependency, and pay-per-request micro-billing in USDC. It is ideal for AI trading agents that need lightweight, on-demand yield conversions embedded in a broader DeFi workflow, especially when avoiding subscription-based financial data APIs.

## Known failure modes

- Missing required input fields returns a validation error
- Invalid compounding frequency or rate values may return a computation error
- Malformed JSON body results in a 400-level response
- Payment not settled via x402 results in a 402 Payment Required response before computation occurs

## How this service works

Pure quant math for AI trading agents: percent change, position sizing, rough liquidation price, DCA schedule, APR/APY. No market data feeds, no API keys. Pay-per-request USDC via x402 on Base and Solana.

## Output

Returns a JSON object with ok: true and the computed APY or APR value derived from the inputs, enabling direct comparison of yield rates across DeFi protocols and financial instruments without needing live market data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "const": "json"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-quant-apr-apy-calculator-d4cde45a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-quant.annushka1190.workers.dev](https://www.zero.xyz/host/agent-quant.annushka1190.workers.dev/llms.txt)
