Calculate impermanent loss for any AMM LP position. Params: ?token0Price=2000&to...
Calculate impermanent loss for any AMM LP position. Params: ?token0Price=2000&token1Price=1¤tToken0Price=2500¤tToken1Price=1&initialValueUsd=10000. Returns IL%, USD impact, holding comparison, and breakeven APY.
Start with a quote-only recipe. Payment signing stays in your project.
const response = await fetch("https://httpay.xyz/api/impermanent-loss-calc", {
method: "GET",
});
console.log(response.status);
console.log(Object.fromEntries(response.headers));
console.log((await response.text()).slice(0, 1000));
// A valid 402 is a quote, not a completed paid call.This sends no payment. Inspect the 402 response before adding a wallet-enabled client.
- Exact route checked
http 402 unparsed · accepts-missing
- Origin reachable
HEAD https://httpay.xyz/ returned 402.
- Observed in cdp-bazaar
The registry record was observed and retained with provenance.
- Observed in 402-index
Discovered through bazaar.
- Registry record checked
Registry health: healthy.
EVIDENCE
Each record has an exact-route quote outcome. Unresolved templates and potentially mutating methods are labeled instead of being invoked without provider-specific test input. A quote is still separate from a settled paid call.