{
  "format": "delx/intent-card/v1",
  "id": "amm-price-impact-bps-api",
  "intent": "AMM Price Impact (bps) for an agent workflow",
  "title": "AMM Price Impact (bps) API for agents",
  "description": "AMM price impact in bps for a swap input against reserves. Call when pre-trade impact checks for pool size vs order size. Returns impact bps and mid vs execution as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.",
  "keywords": [
    "AMM Price Impact (bps) API",
    "AMM Price Impact (bps) for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-23",
  "canonical_url": "https://commerce.delx.ai/intents/amm-price-impact-bps-api",
  "machine_url": "https://commerce.delx.ai/intents/amm-price-impact-bps-api.json",
  "recommendation": {
    "tool_name": "util_amm_price_impact_bps",
    "service_name": "AMM Price Impact (bps)",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/amm-price-impact-bps",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "reserve_in": {
          "description": "Input field: reserve in.",
          "type": "integer"
        },
        "reserve_out": {
          "description": "Input field: reserve out.",
          "type": "integer"
        },
        "amount_in": {
          "description": "Input field: amount in.",
          "type": "integer"
        },
        "fee_bps": {
          "description": "Input field: fee bps.",
          "type": "integer"
        }
      },
      "required": [
        "reserve_in",
        "reserve_out",
        "amount_in",
        "fee_bps"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "reserve_in": 1000,
      "reserve_out": 1000,
      "amount_in": 50,
      "fee_bps": 30
    },
    "example_output": {
      "schema": "delx/util-amm-price-impact-bps/v1",
      "amount_in": 50,
      "amount_out": 47.48297375815593,
      "impact_bps": 530.0902708124378
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/amm-price-impact-bps -m POST -H 'x-delx-source: intent-card-amm-price-impact-bps-api' --max-amount 0.001 -b '{\"reserve_in\":1000,\"reserve_out\":1000,\"amount_in\":50,\"fee_bps\":30}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-amm-price-impact-bps-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/amm-price-impact-bps"
  }
}
