{"uid":"cap_UiZJ7fLFoDTGNf9PUYFzr","slug":"bad-debt-early-warning-signal-cross-fork-defi-lending-d8e169f6","name":"Bad Debt Early-Warning Signal — Cross-Fork DeFi Lending","description":"Insolvency / bad-debt early-warning: positions liquidatable but NOT being liquidated (unsellable collateral or underwater past the bonus), rotting into protocol bad debt. Query: ?chain, ?minUsd.","url":"https://trade-production-180b.up.railway.app/baddebt","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"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6krsbg2CE32_2bpzCEBYa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns positions that are liquidatable but stalled (unsellable collateral or underwater past the bonus), quantifying bad-debt-at-risk per venue and chain in real time.","exampleAgentPrompt":"Show me all positions on Base that are liquidatable but stuck — collateral unsellable or past the bonus — and tell me the total bad-debt-at-risk in USD for positions over $500 across every lending venue you're watching.","exampleUseCases":[{"title":"Protocol treasury bad-debt triage","prompt":"Pull all stalled liquidatable positions across every chain and venue right now, no minimum size filter — I need to see the full bad-debt-at-risk exposure before our weekly risk committee call."},{"title":"Chain-specific insolvency monitoring","prompt":"Show me bad-debt risk on Arbitrum only, positions worth at least $1000 USD — I want to know which lending venues are accumulating the most unsellable collateral."},{"title":"Cross-fork systemic risk dashboard","prompt":"Give me a cross-venue breakdown of positions that are past the liquidation bonus threshold on all chains, so I can see where protocol bad debt is building up fastest right now."}],"resultDescription":"A list of positions that are liquidatable but not being liquidated (due to unsellable collateral or being underwater past the bonus), grouped by venue and chain, including each position's debt size and the total bad-debt-at-risk USD figure per venue/chain.","failureModes":["Invalid or unsupported chain identifier returns an error or empty result","minUsd filter set too high may return zero results even when bad debt exists","RPC or on-chain data latency may cause stale snapshots during network congestion","Unknown venue data gaps if a fork is not yet tracked by the fleet"],"whenToPreferThis":"Choose this endpoint when you need to identify positions that have crossed into insolvency territory — liquidatable but impossible to clear due to unsellable collateral or bonus exhaustion — rather than simply positions at risk of liquidation. It provides a cross-fork, multi-chain aggregated view that no single-venue monitor can replicate, making it the right tool for systemic bad-debt surveillance across a lending protocol fleet.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:35:43.606Z","isFirstParty":false}