{
  "generated_at": "2026-04-24T15:01:35.625676+00:00",
  "slug": "lp-impermanent-loss-estimator-production-up-railway-app-calculate-il-x402",
  "title": "LP Impermanent Loss Estimator \u00b7 Calculate IL and Fee APR",
  "url": "https://lp-impermanent-loss-estimator-production.up.railway.app/calculate-il-x402",
  "category": "finance",
  "summary": "Calculate impermanent loss percentage, fee APR, and net PnL for LP positions using historical price data from CoinGecko.",
  "seo": {
    "title": "LP Impermanent Loss Calculator x402 API | Fee APR Estimator",
    "description": "Calculate impermanent loss and fee APR for liquidity provider positions using CoinGecko historical price data. Pay-per-call x402 API on Base."
  },
  "use_cases": [
    "Evaluate LP position profitability before exit",
    "Compare fee income against impermanent loss",
    "Generate automated LP risk reports"
  ],
  "ideal_buyer": "DeFi traders, yield farmers, and portfolio management agents analyzing liquidity provider positions.",
  "example_prompt": "Calculate the impermanent loss for my ETH-USDC LP position entered at $1800 ETH price, current price $2400, with $5000 total value and 0.3% fee tier.",
  "example_request_body": {
    "token0": "ethereum",
    "token1": "usd-coin",
    "feeTier": 0.003,
    "daysHeld": 30,
    "entryPrice": 1800,
    "currentPrice": 2400,
    "positionValue": 5000
  },
  "risk_notes": [],
  "pricing_sanity": {
    "flag": "expensive",
    "ratio": 3.333,
    "median_category_atomic": 30000
  },
  "pricing_review_required": false,
  "pricing_decimal_suspect": false,
  "trust_tier": "indexed_external",
  "accepts": [
    {
      "scheme": "exact",
      "network": "base",
      "pay_to": "0xe7a413d4192fdee1bb5ecdf9d07a1827eb15bc1f",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "max_amount_required_atomic": "100000",
      "max_timeout_seconds": 300,
      "mime_type": "application/json",
      "description": "Calculate impermanent loss and fee APR for liquidity provider positions using historical price data from CoinGecko",
      "verified": false,
      "hints": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "bodyFields": {
            "daysHeld": {
              "type": "number",
              "required": true,
              "description": "Days held"
            },
            "token0Amount": {
              "type": "number",
              "required": true,
              "description": "Amount of first token"
            },
            "token0Symbol": {
              "enum": [
                "ETH",
                "WETH",
                "BTC",
                "WBTC",
                "USDC",
                "USDT",
                "DAI"
              ],
              "type": "string",
              "required": true,
              "description": "First token symbol"
            },
            "token1Amount": {
              "type": "number",
              "required": true,
              "description": "Amount of second token"
            },
            "token1Symbol": {
              "enum": [
                "ETH",
                "WETH",
                "BTC",
                "WBTC",
                "USDC",
                "USDT",
                "DAI"
              ],
              "type": "string",
              "required": true,
              "description": "Second token symbol"
            }
          }
        },
        "output": {
          "type": "object",
          "properties": {
            "netProfitLoss": {
              "type": "number"
            },
            "recommendation": {
              "type": "string"
            },
            "impermanentLoss": {
              "type": "number"
            },
            "impermanentLossPercent": {
              "type": "number"
            }
          }
        }
      }
    }
  ],
  "origin": {
    "slug": "lp-impermanent-loss-estimator-production-up-railway-app",
    "host": "lp-impermanent-loss-estimator-production.up.railway.app",
    "title": "LP Impermanent Loss Estimator",
    "description": "Calculates impermanent loss and fee APR for liquidity provider positions using historical price data from CoinGecko. Returns position analytics for DeFi LP strategies. $0.10 per invocation.",
    "url": "https://lp-impermanent-loss-estimator-production.up.railway.app"
  },
  "json_ld": {
    "@id": "https://x402all.com/resource/lp-impermanent-loss-estimator-production-up-railway-app-calculate-il-x402",
    "url": "https://x402all.com/resource/lp-impermanent-loss-estimator-production-up-railway-app-calculate-il-x402",
    "name": "LP Impermanent Loss Estimator \u00b7 Calculate IL and Fee APR",
    "@type": "WebAPI",
    "offers": {
      "url": "https://x402all.com/resource/lp-impermanent-loss-estimator-production-up-railway-app-calculate-il-x402",
      "@type": "Offer",
      "price": "0.1",
      "availability": "https://schema.org/InStock",
      "priceCurrency": "USDC",
      "priceSpecification": {
        "@type": "UnitPriceSpecification",
        "price": "0.100000",
        "unitText": "call",
        "priceCurrency": "USDC"
      },
      "eligibleCustomerType": "Agent",
      "additionalProperty": [
        {
          "@type": "PropertyValue",
          "name": "paymentNetwork",
          "value": "base"
        },
        {
          "@type": "PropertyValue",
          "name": "paymentAsset",
          "value": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
        }
      ]
    },
    "sameAs": "https://lp-impermanent-loss-estimator-production.up.railway.app/calculate-il-x402",
    "@context": "https://schema.org",
    "provider": {
      "@id": "https://x402all.com/server/lp-impermanent-loss-estimator-production-up-railway-app",
      "url": "https://lp-impermanent-loss-estimator-production.up.railway.app",
      "name": "LP Impermanent Loss Estimator",
      "@type": "Organization"
    },
    "identifier": "lp-impermanent-loss-estimator-production-up-railway-app-calculate-il-x402",
    "description": "Calculate impermanent loss and fee APR for liquidity provider positions using CoinGecko historical price data. Pay-per-call x402 API on Base.",
    "potentialAction": {
      "@type": "BuyAction",
      "target": "https://axon402.com/test-buy?resource=lp-impermanent-loss-estimator-production-up-railway-app-calculate-il-x402",
      "description": "Test-buy this endpoint on AXON"
    },
    "applicationCategory": "finance"
  },
  "axon_deep_link": "https://axon402.com/test-buy?resource=lp-impermanent-loss-estimator-production-up-railway-app-calculate-il-x402"
}
