API & Widget

Every number on Akral is free to use. No key, no sign-up. JSON over HTTPS, open to any site (CORS on).

Widget

Paste this on any page to show a vault's measured yield. It updates by itself. Open any vault to copy its own code.


Endpoints

GET /api/vaults

Every tracked vault: measured APY (7d, 30d) with the blocks it was measured between, rewards, what the protocol reports, liquidity, deposits and a risk level with its reasons. Cached 30 s.

GET /api/vaults/{address}?days=30

One vault plus its share-price history (up to 120 days).

GET /api/pools

Other pools on Robinhood Chain from DefiLlama, with base and reward APY split.

GET /api/positions?owner={wallet}

A wallet's shares in every tracked vault, valued at the latest block.

GET /api/earnings?owner={wallet}

What the wallet really earned in each position: deposits, withdrawals and share transfers read from the vault's events.

GET /api/health

Server status and which RPC it reads.

Wallet endpoints are limited to 90 requests a minute per IP. Please cache on your side.

Example

const r = await fetch('https://kynosura.xyz/api/vaults');
const { vaults } = await r.json();
for (const v of vaults) {
  console.log(v.label, v.realApy['30d'].apy, v.risk?.level);
}

Real APY = (share price now ÷ share price then)365 / days − 1, from convertToAssets on the vault contract. Rewards are added from the source that reports them. The code is on GitHub.