{"uid":"cap_iQ2YMzlXArmpmPVJbR9lT","slug":"liquidation-cascade-steps-25da7750","name":"Liquidation Cascade Steps","description":"Advisory liq price ladder over leverage steps. Call when stressing sequential leverage reductions toward liquidation. Returns steps of approx liq prices 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.","url":"https://api.delx.ai/api/v1/x402/liq-cascade-steps","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"entry":{"type":"number","description":"Entry price of the position"},"steps":{"type":"integer","description":"Number of cascade steps to emit"},"leverage":{"type":"number","description":"Position leverage multiplier"},"maintenance":{"type":"number","description":"Maintenance margin fraction"}}},"responseSchema":{"type":"json","example":{"steps":[{"step":1,"leverage":10,"liq_price_long_approx":90.5},{"step":2,"leverage":5,"liq_price_long_approx":80.5},{"step":3,"leverage":3.333333333333333,"liq_price_long_approx":70.5}],"schema":"delx/util-liq-cascade-steps/v1"}},"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_FUPv9dYoRrlsxYpzvVv9C","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":"Computes a stepped ladder of approximate liquidation prices across sequential leverage reductions for a leveraged position, using deterministic local math.","exampleAgentPrompt":"Show me the liquidation price cascade for a position I entered at $48,000 with 15x leverage and a 0.05 maintenance margin — give me 8 steps so I can see how the liq price shifts as I reduce leverage.","exampleUseCases":[{"title":"Stress-testing a crypto futures position","prompt":"I'm holding a BTC futures position entered at $65,000 with 20x leverage and a maintenance margin of 0.04. Can you compute 10 cascade steps showing how my liquidation price changes as I reduce leverage toward 1x?"},{"title":"Pre-trade risk ladder for new position","prompt":"Before I open a position at $3,200 entry with 12x leverage and 0.05 maintenance margin, give me a 6-step liquidation cascade so I can see my liq price at each leverage level."},{"title":"Risk review after partial position close","prompt":"I just reduced my position and my effective leverage is now 8x with entry at $2,800 and a 0.05 maintenance margin — run 5 cascade steps so I know my approximate liquidation prices if I keep reducing leverage further."}],"resultDescription":"Returns a deterministic JSON array of cascade steps, each containing an approximate liquidation price corresponding to a sequential leverage level between the specified starting leverage and a lower bound, computed entirely from local math with no live market data or RPC calls.","failureModes":["Missing required fields (entry, leverage, maintenance, steps) results in a validation error","Non-positive leverage or maintenance margin values may produce undefined or error responses","Extremely large step counts may return degraded or capped output","x402 payment failure or insufficient USDC balance blocks the request","Maintenance margin values outside valid range (0 < maintenance < 1) may cause computation errors"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, offline liquidation price ladder across leverage reduction steps — no API keys, no live price feeds, no RPC calls required. Ideal for pre-trade risk analysis, portfolio stress testing, or agent workflows that need reproducible liq price estimates without external dependencies. Prefer over live-data endpoints when advisory math is sufficient and latency or cost must be minimized.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:16:45.419Z","isFirstParty":false}