apexfaucet.xyz/api/x402/lp-impermanent-loss
Exact AMM (x*y=k) and Uniswap v3 / Raydium CLMM concentrated-liquidity Impermanent Loss, capital efficiency multiplier, fee APR breakeven, and LP vs HODL dollar P&L calculator (?entryPrice=100¤tPrice=150&depositUsd=1000&lowerPrice=80&upperPrice=180&feeAprPct=45&daysHeld=30). (APEX).
GET
https://apexfaucet.xyz/api/x402/lp-impermanent-lossUptime100% 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://apexfaucet.xyz/api/x402/lp-impermanent-loss?currentPrice=150&daysHeld=30&depositUsd=1000&entryPrice=100&feeAprPct=45&lowerPrice=80&upperPrice=180");
console.log(await res.json());Example input
{
"currentPrice": 150,
"daysHeld": 30,
"depositUsd": 1000,
"entryPrice": 100,
"feeAprPct": 45,
"lowerPrice": 80,
"upperPrice": 180
}