{
  "generated_at": "2026-04-24T15:01:35.625676+00:00",
  "slug": "defi-guardian-production-up-railway-app-entrypoints-defi-guardian-invoke",
  "title": "DeFi Guardian \u00b7 Risk Analysis Engine",
  "url": "https://defi-guardian-production.up.railway.app/entrypoints/defi-guardian/invoke",
  "category": "finance",
  "summary": "Analyze DeFi positions across lending, yield farming, liquidity pools, perpetuals, and identify arbitrage opportunities.",
  "seo": {
    "title": "DeFi Risk Analysis API | x402 Position Intelligence",
    "description": "Comprehensive DeFi risk analysis via x402. Pay 0.75 USDC per analysis on Base. Lending, yield, LP, perps, and arbitrage scanning."
  },
  "use_cases": [
    "Assess liquidation risk across multi-protocol lending positions",
    "Identify yield farming impermanent loss exposure",
    "Detect arbitrage opportunities between DEX liquidity pools",
    "Monitor perpetual position funding rate risks"
  ],
  "ideal_buyer": "DeFi risk management agents and quantitative systems requiring multi-protocol position analysis.",
  "example_prompt": "Analyze my DeFi positions across Aave, Compound, and Uniswap for liquidation risk, impermanent loss, and any arbitrage opportunities.",
  "example_request_body": {
    "positions": [
      {
        "type": "lending",
        "protocol": "aave"
      },
      {
        "type": "lending",
        "protocol": "compound"
      },
      {
        "type": "lp",
        "protocol": "uniswap"
      }
    ]
  },
  "risk_notes": [],
  "pricing_sanity": {
    "flag": "expensive_outlier",
    "ratio": 25,
    "median_category_atomic": 30000
  },
  "pricing_review_required": false,
  "pricing_decimal_suspect": false,
  "trust_tier": "indexed_external",
  "accepts": [
    {
      "scheme": "exact",
      "network": "base",
      "pay_to": "0x01d11f7e1a46abfc6092d7be484895d2d505095c",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "max_amount_required_atomic": "750000",
      "max_timeout_seconds": 300,
      "mime_type": "application/json",
      "description": "Comprehensive DeFi risk analysis - lending, yield, LP positions, perps, and arbitrage opportunities",
      "verified": false,
      "hints": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "bodyFields": {
            "input": {
              "type": "object",
              "required": [
                "wallet_address",
                "chain_ids",
                "include_perps",
                "include_arbitrage"
              ],
              "properties": {
                "chain_ids": {
                  "type": "array",
                  "items": {
                    "type": "number"
                  },
                  "description": "Chain IDs to analyze (default: Ethereum, Arbitrum, Base)"
                },
                "lp_positions": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "protocol",
                      "token0_symbol",
                      "token1_symbol",
                      "token0_amount",
                      "token1_amount",
                      "initial_price0",
                      "initial_price1",
                      "entry_date"
                    ],
                    "properties": {
                      "protocol": {
                        "type": "string",
                        "description": "DEX name (uniswap-v3, curve, balancer)"
                      },
                      "entry_date": {
                        "type": "string",
                        "description": "ISO date when position was opened"
                      },
                      "token0_amount": {
                        "type": "number"
                      },
                      "token0_symbol": {
                        "type": "string"
                      },
                      "token1_amount": {
                        "type": "number"
                      },
                      "token1_symbol": {
                        "type": "string"
                      },
                      "initial_price0": {
                        "type": "number"
                      },
                      "initial_price1": {
                        "type": "number"
                      }
                    }
                  },
                  "description": "Optional: Your LP positions for accurate IL analysis"
                },
                "include_perps": {
                  "type": "boolean",
                  "description": "Include perpetuals funding analysis"
                },
                "wallet_address": {
                  "type": "string",
                  "description": "Wallet address to analyze"
                },
                "include_arbitrage": {
                  "type": "boolean",
                  "description": "Include cross-DEX arbitrage opportunities"
                }
              }
            }
          }
        },
        "output": {
          "output": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "wallet_address",
              "overall_risk_score",
              "total_positions",
              "critical_alerts",
              "lending_analysis",
              "yield_analysis",
              "lp_analysis",
              "perps_analysis",
              "arbitrage_opportunities",
              "summary",
              "timestamp"
            ],
            "properties": {
              "summary": {
                "type": "string"
              },
              "timestamp": {
                "type": "string"
              },
              "lp_analysis": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "il_percentage",
                      "net_apr",
                      "recommendation"
                    ],
                    "properties": {
                      "net_apr": {
                        "type": "number"
                      },
                      "il_percentage": {
                        "type": "number"
                      },
                      "recommendation": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "perps_analysis": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "positions"
                    ],
                    "properties": {
                      "positions": {
                        "type": "array",
                        "items": {}
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "wallet_address": {
                "type": "string"
              },
              "yield_analysis": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "pools",
                      "alerts_count"
                    ],
                    "properties": {
                      "pools": {
                        "type": "array",
                        "items": {}
                      },
                      "alerts_count": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "critical_alerts": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "total_positions": {
                "type": "number"
              },
              "lending_analysis": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "positions",
                      "at_risk_count"
                    ],
                    "properties": {
                      "positions": {
                        "type": "array",
                        "items": {}
                      },
                      "at_risk_count": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "overall_risk_score": {
                "type": "number",
                "description": "Risk score 0-100 (0=safe, 100=critical)"
              },
              "arbitrage_opportunities": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "opportunities"
                    ],
                    "properties": {
                      "opportunities": {
                        "type": "array",
                        "items": {}
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          }
        }
      }
    }
  ],
  "origin": {
    "slug": "defi-guardian-production-up-railway-app",
    "host": "defi-guardian-production.up.railway.app",
    "title": "DeFi Guardian API",
    "description": "x402-payable endpoint host on Railway infrastructure. No public homepage available; API endpoints may be active at specific routes.",
    "url": "https://defi-guardian-production.up.railway.app",
    "favicon": "https://defi-guardian-production.up.railway.app/favicon.ico"
  },
  "json_ld": {
    "@id": "https://x402all.com/resource/defi-guardian-production-up-railway-app-entrypoints-defi-guardian-invoke",
    "url": "https://x402all.com/resource/defi-guardian-production-up-railway-app-entrypoints-defi-guardian-invoke",
    "name": "DeFi Guardian \u00b7 Risk Analysis Engine",
    "@type": "WebAPI",
    "offers": {
      "url": "https://x402all.com/resource/defi-guardian-production-up-railway-app-entrypoints-defi-guardian-invoke",
      "@type": "Offer",
      "price": "0.75",
      "availability": "https://schema.org/InStock",
      "priceCurrency": "USDC",
      "priceSpecification": {
        "@type": "UnitPriceSpecification",
        "price": "0.750000",
        "unitText": "call",
        "priceCurrency": "USDC"
      },
      "eligibleCustomerType": "Agent",
      "additionalProperty": [
        {
          "@type": "PropertyValue",
          "name": "paymentNetwork",
          "value": "base"
        },
        {
          "@type": "PropertyValue",
          "name": "paymentAsset",
          "value": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
        }
      ]
    },
    "sameAs": "https://defi-guardian-production.up.railway.app/entrypoints/defi-guardian/invoke",
    "@context": "https://schema.org",
    "provider": {
      "@id": "https://x402all.com/server/defi-guardian-production-up-railway-app",
      "url": "https://defi-guardian-production.up.railway.app",
      "name": "DeFi Guardian API",
      "@type": "Organization"
    },
    "identifier": "defi-guardian-production-up-railway-app-entrypoints-defi-guardian-invoke",
    "description": "Comprehensive DeFi risk analysis via x402. Pay 0.75 USDC per analysis on Base. Lending, yield, LP, perps, and arbitrage scanning.",
    "potentialAction": {
      "@type": "BuyAction",
      "target": "https://axon402.com/test-buy?resource=defi-guardian-production-up-railway-app-entrypoints-defi-guardian-invoke",
      "description": "Test-buy this endpoint on AXON"
    },
    "applicationCategory": "finance"
  },
  "axon_deep_link": "https://axon402.com/test-buy?resource=defi-guardian-production-up-railway-app-entrypoints-defi-guardian-invoke"
}
