{"uid":"cap_bTW1L27KJsKtu0S9HvRwd","slug":"borrow-curve-stress-test-900e3a00","name":"Borrow-Curve Stress Test","description":"Borrow-Curve Stress Test analyses only the evidence supplied by the caller. It does not claim to query a chain, identify a legal status or replace an independent audit. Missing signals lower confidence and are listed explicitly; every classification includes the exact thresholds used.","url":"https://staking.halowerk.com/v1/borrow-curve-stress-test?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"strict":{"type":"boolean","default":false,"description":"Reject unless all documented metrics are supplied."},"context":{"type":"object","description":"Optional non-secret labels returned unchanged for correlation.","maxProperties":20,"additionalProperties":{"type":["string","number","boolean","null"]}},"subject":{"type":"string","maxLength":256,"minLength":1,"description":"Address, transaction, protocol, asset, proposal or other subject being assessed."},"evidence":{"type":"array","items":{"type":"object","required":["metric","value"],"properties":{"note":{"type":"string","maxLength":500},"value":{"type":["number","boolean"]},"metric":{"enum":["stressed_rate_pct","utilization_shock_pct","liquidity_gap_pct"],"type":"string"},"source":{"type":"string","maxLength":300,"minLength":1,"description":"Evidence source or query identifier."},"timestamp":{"type":"string","maxLength":40,"minLength":10,"description":"ISO-8601 observation time."}},"additionalProperties":false},"maxItems":50,"minItems":1,"description":"Caller-supplied observations. Repeated metrics form a time series; the newest timestamp is assessed."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ywhI-47JEXNCjhrxdyyVV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes caller-supplied borrow-curve metrics (stressed rate, utilization shock, liquidity gap) to stress-test lending/borrowing positions and return confidence-scored classifications with explicit thresholds.","exampleAgentPrompt":"Stress test the borrow curve for Aave's USDC market — I have a stressed rate of 18.5%, a utilization shock of 35%, and a liquidity gap of 12%; run a strict analysis and tell me the risk classification and which thresholds were used.","exampleUseCases":[{"title":"DeFi protocol risk pre-launch check","prompt":"Before we deploy liquidity to this new lending protocol, stress test its borrow curve using a stressed rate of 22%, utilization shock of 40%, and a liquidity gap of 15% — flag any missing signals and give me the risk classification with thresholds."},{"title":"Monitoring staking position under market stress","prompt":"I'm holding a large staking position on protocol 0xabc123 — run a borrow-curve stress test with a stressed rate of 14%, utilization shock of 28%, and liquidity gap of 9% so I can see if my position is at risk if the market spikes."},{"title":"Governance proposal risk assessment","prompt":"There's a governance proposal to raise the borrow rate ceiling on this protocol — stress test the borrow curve for proposal ID 'BIP-042' using a stressed rate of 30%, utilization shock of 50%, and liquidity gap of 20%, and tell me the classification and exact thresholds applied."}],"resultDescription":"Returns a risk classification for the borrow curve stress scenario, the exact thresholds used to reach each classification, a confidence score, and an explicit list of any missing signals that lowered confidence. The original context labels are echoed back for correlation.","failureModes":["Missing all required metrics returns an error or zero-confidence result","strict mode enabled with incomplete evidence rejects the request","Invalid metric enum values cause schema validation failure","Evidence array with no items fails minItems constraint","Subject string exceeding 256 characters is rejected","Malformed ISO-8601 timestamps on evidence items cause parsing errors"],"whenToPreferThis":"Use this endpoint when you need a transparent, evidence-based stress test of a DeFi borrow curve that explicitly documents thresholds and flags missing data, rather than a black-box risk score. Ideal when the caller controls the evidence supply (e.g., off-chain observations or aggregated on-chain snapshots) and needs an auditable, reproducible classification. Prefer over general risk APIs when you need time-series support for metrics and strict mode enforcement of data completeness.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T06:34:06.320Z","isFirstParty":false,"canonicalSlug":"borrow-curve-stress-test-900e3a00"}