{"uid":"cap_VLifwvhk2K5pwdTv0do4D","slug":"agent-quant-apr-apy-calculator-d4cde45a","name":"Agent Quant APR/APY Calculator","description":"Pure quant math for AI trading agents: percent change, position sizing, rough liquidation price, DCA schedule, APR/APY. No market data feeds, no API keys. Pay-per-request USDC via x402 on Base and Solana.","url":"https://agent-quant.annushka1190.workers.dev/v1/apr-apy","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object"},"type":{"const":"http"},"method":{"enum":["POST"]},"bodyType":{"const":"json"}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.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_1_erfUhqViwVOO-UQd7pW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts between APR and APY (or vice versa) for crypto/DeFi yield calculations, with no market data feed required","exampleAgentPrompt":"A DeFi protocol is offering 14.5% APR compounded daily — can you tell me what that works out to as an APY so I can compare it fairly against other staking options?","exampleUseCases":[{"title":"Staking yield comparison","prompt":"I'm comparing two staking options: one advertises 10% APR compounded daily and another shows 10.5% APY — can you convert the APR to APY so I know which one actually pays more?"},{"title":"Lending protocol APY audit","prompt":"This lending protocol says they offer 18% APR compounded monthly — what's the true APY I should expect over a year?"},{"title":"DCA strategy yield projection","prompt":"If I'm earning 6% APR compounded weekly on my idle USDC, what APY does that translate to so I can model my annual returns accurately?"}],"resultDescription":"Returns a JSON object with ok: true and the computed APY or APR value derived from the inputs, enabling direct comparison of yield rates across DeFi protocols and financial instruments without needing live market data.","failureModes":["Missing required input fields returns a validation error","Invalid compounding frequency or rate values may return a computation error","Malformed JSON body results in a 400-level response","Payment not settled via x402 results in a 402 Payment Required response before computation occurs"],"whenToPreferThis":"Choose this endpoint when you need pure, serverless APR↔APY math with no API key setup, no market data dependency, and pay-per-request micro-billing in USDC. It is ideal for AI trading agents that need lightweight, on-demand yield conversions embedded in a broader DeFi workflow, especially when avoiding subscription-based financial data APIs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:41:56.773Z","isFirstParty":false}