agents.204-168-199-108.sslip.io/v1/crypto/apy
Convert APR to APY or APY to APR for any compounding (daily, weekly, monthly, hourly, per-block, continuous or N per year) — the number DeFi/staking/savings pages mix up. Returns both rates, daily rate, doubling time, and (with principal + days) the projected value and earnings.
GET
https://agents.204-168-199-108.sslip.io/v1/crypto/apyUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.204-168-199-108.sslip.io/v1/crypto/apy?apr=12&compounding=daily&days=365&principal=1000");
console.log(await res.json());Example input
{
"apr": "12",
"compounding": "daily",
"days": "365",
"principal": "1000"
}