Crypto & DeFi

Convert between APR and APY at any compounding frequency (or continuous).

Convert between APR and APY at any compounding frequency (or continuous).

Payment: x402 ($0.02 USDC on eip155:8453). Call unpaid to receive an HTTP 402 with requirements, then retry with the PAYMENT-SIGNATURE header. Method: APY = (1+APR/n)^n - 1; APR = n*((1+APY)^(1/n) - 1); continuous uses e^APR-1 / ln(1+APY)

post/v1/crypto/apr-apy

Request

  • Base URL: (relative, and it does not resolve against the document’s source URL)
  • URL: /v1/crypto/apr-apy
  • Auth: none declared

Request body

direction'apr_to_apy' | 'apy_to_apr'
ratePctnumber required
compoundsPerYearnumber
compounding'periodic' | 'continuous'

Response

Verified result + provenance (formula, sources, reproducible SHA-256 hash).

Changes

No recorded changes to this operation across all 1 revision of this API.