{"uid":"cap_IdvWBzs38yo1jG9NJQaYm","slug":"apr-apy-converter-deposit-projector-74e23872","name":"APR ↔ APY Converter & Deposit Projector","description":"Convert APR to APY or APY to APR for any compounding frequency (continuous, daily, hourly, per block...) and optionally project the final value and gain of a deposit over N days. Useful to compare DeFi yields.","url":"https://api.vextorium.com/apr-apy-pago?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["tasa_pct"],"properties":{"de":{"enum":["apr","apy"],"type":"string","description":"What the rate is"},"dias":{"type":"integer","description":"Days to project (default 365)"},"capital":{"type":"number","description":"Deposit to project (optional)"},"tasa_pct":{"type":"number","description":"Rate in %"},"capitalizaciones_anio":{"type":"integer","description":"Compounding periods per year (0 = continuous, 365 = daily)"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":["object","null"],"properties":{"dias":{"type":["number","null"]},"apr_pct":{"type":["number","null"]},"apy_pct":{"type":["number","null"]},"capital":{"type":["number","null"]},"ganancia":{"type":["number","null"]},"frecuencia":{"type":["string","null"]},"valor_final":{"type":["number","null"]},"capitalizaciones_anio":{"type":["number","null"]}}}}}}},"responseSchema":{"type":"json","example":{"dias":365,"apr_pct":10,"apy_pct":10.515578,"capital":1000,"ganancia":105.155782,"frecuencia":"diaria","valor_final":1105.155782,"capitalizaciones_anio":365}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-oCihEYmGSUO88begxtqZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts between APR and APY for any compounding frequency and optionally projects final value and gain of a deposit over N days.","exampleAgentPrompt":"Convert a 10% APR compounded daily (365 periods per year) to APY, and project how much a $1,000 deposit would be worth after 365 days.","exampleUseCases":[{"title":"DeFi staking yield comparison","prompt":"I'm comparing two DeFi pools — one advertises 8% APR with daily compounding and another shows 8.2% APY. Convert the 8% APR to APY using 365 compounding periods so I can see which one actually pays more."},{"title":"Lending deposit projection","prompt":"If I deposit $5,000 into a protocol offering 12% APY, how much will I have after 180 days? Assume it's already expressed as APY so just project the final value and my gain."},{"title":"Continuous compounding effective rate","prompt":"A liquidity pool quotes 15% APR with continuous compounding — what's the equivalent APY? Use 0 compounding periods to indicate continuous."}],"resultDescription":"Returns a JSON object with the converted rate (both apr_pct and apy_pct), the compounding frequency label (e.g. 'diaria'), number of compounding periods per year, and optionally the projection days, deposit capital, final value, and gain if capital was provided.","failureModes":["Missing required tasa_pct field returns a validation error","Invalid or unrecognized 'de' enum value (not 'apr' or 'apy') causes a bad request","Negative or zero rate values may produce unexpected mathematical results","Extremely large compounding periods may behave like continuous compounding","Non-numeric capital or days fields cause schema validation failure"],"whenToPreferThis":"Use this endpoint when you need to compare DeFi or TradFi yields expressed as APR vs APY, especially across different compounding frequencies (daily, hourly, per block, continuous). It is ideal for agents that need to normalize yield figures before ranking protocols or projecting investment outcomes, and supports the full range of compounding frequencies including continuous (0 periods).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:41:57.839Z","isFirstParty":false,"canonicalSlug":"apr-apy-converter-deposit-projector-74e23872"}