# QuantOracle APY/APR Converter

> QuantOracle APY/APR Converter is a paid API for AI agents from api.quantoracle.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13, last successful call 2026-05-27).

Converts between Annual Percentage Yield (APY) and Annual Percentage Rate (APR) for crypto financial calculations, accounting for compounding frequency.

## Facts

- Endpoint: POST https://api.quantoracle.dev/v1/crypto/apy-apr-convert
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Last successful call: 2026-05-27
- Success rate: 100% of calls made through Zero
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-quantoracle-dev-3b4db45c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_r3ArLcQVf7ElWH_coHe-e

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 api-quantoracle-dev-3b4db45c -d '<json body>'
```

Example prompt: Convert an APR of 18.25% compounded daily to its equivalent APY — I want to compare it against a lending platform quoting 19.5% APY.

## When to prefer this

Use this endpoint when you need to mathematically convert between APY and APR for crypto or DeFi contexts, especially when comparing yields across protocols that quote rates differently. Ideal when compounding frequency matters (daily, monthly, continuously) and you need a precise numeric result rather than an estimate.

## Known failure modes

- Invalid or negative input rate returns a 400 error
- Unsupported compounding frequency value rejected
- Missing required conversion direction or rate field causes validation error
- Extremely large rates may produce overflow or precision errors

## How this service works

QuantOracle: crypto/apy-apr-convert

## Output

Returns the converted interest rate value (APY or APR) based on the input rate and compounding frequency, enabling direct comparison of crypto yield rates expressed in different formats.

## Example request

```json
{
 "input": {
  "body": {
   "rate": 0.05,
   "from_type": "apr",
   "compounding": "daily"
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rate": {
   "type": "number",
   "title": "Rate",
   "description": "The rate to convert (as decimal, e.g. 0.12 = 12%)"
  },
  "from_type": {
   "enum": [
    "apy",
    "apr"
   ],
   "type": "string",
   "title": "From Type",
   "default": "apr",
   "description": "Input rate type to convert from"
  },
  "compounding": {
   "enum": [
    "daily",
    "weekly",
    "monthly",
    "quarterly",
    "continuous"
   ],
   "type": "string",
   "title": "Compounding",
   "default": "daily",
   "description": "Compounding frequency"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-quantoracle-dev-3b4db45c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.quantoracle.dev](https://www.zero.xyz/host/api.quantoracle.dev/llms.txt)
