{"uid":"cap_Tb48ouvJ_SrgEsSGGeBsF","slug":"aave-compound-lending-health-factor-calculator-7b85def0","name":"Aave/Compound Lending Health Factor Calculator","description":"Calculate Aave/Compound lending health factor and collateral drawdown safety buffer from collateral, debt, and liquidation threshold.","url":"https://bot-bazaar.fly.dev/v1/x402/lending-health-factor?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"collateral_usd":{"type":"string","description":"Total collateral value in USD"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_M7_ecqrwSFuyMh9yZ8yiA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the DeFi lending health factor and collateral drawdown safety buffer for Aave/Compound positions given collateral value, debt, and liquidation threshold.","exampleAgentPrompt":"Can you calculate my Aave lending health factor? I have $15,000 in collateral, $8,000 in debt, and a liquidation threshold of 80%.","exampleUseCases":[{"title":"Aave position liquidation risk check","prompt":"I have $20,000 collateral and $12,000 debt on Aave with a liquidation threshold of 82% — what's my health factor and how much can my collateral drop before I get liquidated?"},{"title":"Compound loan safety buffer monitoring","prompt":"Can you check how safe my Compound loan is? I've got $50,000 in collateral, $25,000 borrowed, and the liquidation threshold is 75%. Tell me my health factor and safety buffer."},{"title":"DeFi leverage risk assessment before market dip","prompt":"I'm worried about a market downturn. My DeFi position has $8,500 collateral, $5,000 debt, and a 78% liquidation threshold — compute my health factor and tell me how much downside room I have."}],"resultDescription":"Returns the computed health factor (a ratio where values below 1.0 indicate liquidation risk) and the collateral drawdown safety buffer showing how much collateral value can decline before the position becomes liquidatable, based on the supplied collateral, debt, and liquidation threshold values.","failureModes":["Missing required collateral_usd query parameter returns an error","Non-numeric or negative values for collateral or debt may produce invalid results","Zero collateral value causes division-by-zero or undefined health factor","Liquidation threshold outside valid range (0–1) may produce nonsensical output","Payment failure (x402 protocol) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic computation of Aave or Compound lending health factor and liquidation safety margin without connecting to on-chain RPC nodes. Ideal for agents monitoring DeFi positions, portfolio dashboards, or alerting systems that need a lightweight calculation from known collateral and debt figures rather than a full on-chain query.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:01.530Z","isFirstParty":false,"canonicalSlug":"aave-compound-lending-health-factor-calculator-7b85def0"}