Catalog/cryptocalc-apr-to-apy

Calculators

APR to APY converter API

Convert a nominal APR to effective APY (or invert) for a given compounding frequency: APY = (1+APR/n)^n − 1, APR = n·((1+APY)^(1/n) − 1), with continuous compounding (e^APR − 1) supported. Deterministic compounding conversion. Answers 'convert 5% APR to APY','APY for daily compounding','what APR gives this APY'.

Price$0.01per request
MethodPOST
Route/v1/calc/cryptocalc-apr-to-apy
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
calccryptodefiaprapycompoundingyieldconversion
API URLhttps://x402.hexl.dev/v1/calc/cryptocalc-apr-to-apy
Integration docs
Example request
{
  "apr": 0.05,
  "compoundsPerYear": 365
}
Example response
{
  "formula": "APY = (1+APR/n)^n − 1",
  "apr": 0.05,
  "aprPct": 5,
  "compoundsPerYear": 365,
  "apy": 0.0512675,
  "apyPct": 5.12675
}
Input schema
{
  "type": "object",
  "required": [],
  "properties": {
    "apr": {
      "type": "number",
      "description": "nominal APR (decimal)",
      "examples": [
        0.05
      ]
    },
    "apy": {
      "type": "number",
      "description": "effective APY (decimal) to invert",
      "examples": [
        0.0512675
      ]
    },
    "compoundsPerYear": {
      "type": "number",
      "examples": [
        365
      ]
    },
    "continuous": {
      "type": "boolean",
      "examples": [
        false
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}