{"uid":"cap_vrK1fWBaqPG_0cPonojcF","slug":"apr-apy-converter-any-compounding-frequency-86dba96b","name":"APR ↔ APY Converter (Any Compounding Frequency)","description":"Convert between APR and APY at any compounding frequency — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/apr-apy?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"params":{"type":"object","properties":{"rate":{"type":"string"},"periods":{"type":"integer","minimum":0},"direction":{"type":"string"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"type":"apr-apy","receipt":{"tx_hash":"0x<64hex>","amount_usd":0.002,"receipt_id":"g402-<16hex>"},"generated_at":"<iso8601>"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IEkYniuwqKA-mZlSynbK8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts between Annual Percentage Rate (APR) and Annual Percentage yield (APY) at any compounding frequency via the UnyKorn Operator Network.","exampleAgentPrompt":"Can you convert a 7.5% APR to APY using monthly compounding (12 periods)?","exampleUseCases":[{"title":"DeFi yield comparison for investors","prompt":"I'm comparing two DeFi protocols — one advertises 8% APR compounded daily (365 periods) and the other shows APY directly. Can you convert the 8% APR to APY so I can compare them on equal footing?"},{"title":"Mortgage rate effective cost check","prompt":"My mortgage has a 6.2% APR compounded monthly — what's the actual APY I'm paying each year?"},{"title":"Savings account advertised yield reconciliation","prompt":"A savings account says it pays 4.5% APY. Can you convert that back to the APR assuming daily compounding with 365 periods, so I know the nominal rate?"}],"resultDescription":"Returns a JSON object with ok status, the conversion type label ('apr-apy'), the computed converted rate, and a receipt object containing a transaction hash, USD amount paid, and a unique receipt ID — plus an ISO 8601 timestamp of when the result was generated.","failureModes":["Invalid or missing 'rate' string — returns error or malformed response","Invalid 'direction' value not matching expected enum (e.g. 'apr-apy' or 'apy-apr') — may return error","Periods set to 0 or negative — may cause division-by-zero or invalid computation","Payment failure on x402 micropayment layer — request rejected before computation","Malformed JSON body — returns HTTP 400 or equivalent error"],"whenToPreferThis":"Choose this endpoint when you need a programmatic, pay-per-call APR↔APY conversion with cryptographic receipt proof, especially in DeFi or fintech agent workflows where auditability of rate conversions matters. Prefer it over manual formula implementations when you need tamper-evident receipts or are already operating within the x402 micropayment ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:55:45.838Z","isFirstParty":false,"canonicalSlug":"apr-apy-converter-any-compounding-frequency-86dba96b"}