Impermanent Loss
impermanent_lossImpermanent loss calculator for AMM liquidity positions: full-range constant-product pools (Uniswap v2, Raydium, Orca classic) or concentrated ranges (Uniswap v3/v4, Orca Whirlpools, Raydium CLMM, Meteora) from entry price, current price and an optional price range. Returns LP value vs simply holding, the loss in percent and money, token amounts at entry and now, in-range status and, with a fee APR, the fees earned and break-even. Price: $0.002 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/impermanent-loss
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entryPrice": "<entryPrice>",
"currentPrice": "<currentPrice>"
},
"name": "impermanent_loss"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Days the position has been / will be open (for fees) | |
| feeApr | No | Optional pool fee APR in percent, to estimate fees earned | |
| entryPrice | Yes | Price of token0 in token1 (e.g. ETH in USDC) when the position was opened | |
| rangeLower | No | Concentrated liquidity: lower price bound (omit both bounds for full range) | |
| rangeUpper | No | Concentrated liquidity: upper price bound | |
| currentPrice | Yes | Price now (or a scenario price) | |
| depositValue | No | Position value at entry, in token1 / quote terms |