{"uid":"cap_g6A-hev9Fj9PshFoxODji","slug":"agent-quant-liquidation-price-calculator-b8c3af11","name":"Agent Quant Liquidation Price Calculator","description":"Pure quant math for AI trading agents: percent change, position sizing, rough liquidation price, DCA schedule, APR/APY. No market data feeds, no API keys. Pay-per-request USDC via x402 on Base and Solana.","url":"https://agent-quant.annushka1190.workers.dev/v1/liq-price","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object"},"type":{"const":"http"},"method":{"enum":["POST"]},"bodyType":{"const":"json"}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fPjVTaXt2U_SsZOrkLAFn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a rough liquidation price for a leveraged trading position given entry price, leverage, and position side.","exampleAgentPrompt":"What's my rough liquidation price if I open a 10x long on BTC at an entry price of $65,000 with $1,000 in margin?","exampleUseCases":[{"title":"Perpetuals long position risk check","prompt":"I'm opening a 20x long on ETH at $3,200 entry with $500 margin — what's the rough liquidation price I should watch out for?"},{"title":"Short position liquidation estimate","prompt":"If I short SOL at $145 with 5x leverage and $2,000 collateral, at what price would I get liquidated?"},{"title":"Pre-trade risk sizing for DeFi trader","prompt":"Before I put on this trade, can you calculate the liquidation price for a 15x long at $0.85 entry with $300 margin so I know my downside limit?"}],"resultDescription":"Returns a JSON object with ok:true and a computed rough liquidation price for the specified leveraged position, based purely on mathematical formulas — no live market data involved.","failureModes":["Missing required body fields (entry price, leverage, side) returns a validation error","Leverage value of zero or negative causes division error","Invalid position type (not long/short) may return error or unexpected result","Payment not included or insufficient USDC via x402 results in 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, formula-based liquidation price estimate without requiring any API keys or live market data feeds. Ideal for AI trading agents doing pre-trade risk checks, position sizing workflows, or educational simulations where a rough liquidation level is sufficient and real-time exchange data is not necessary.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:35:42.530Z","isFirstParty":false}