{"uid":"cap_0kdZ1SFeeEm925SfmKObo","slug":"delx-commerce-drawdown-percentage-calculator-2c87643a","name":"Delx Commerce — Drawdown Percentage Calculator","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/drawdown-pct?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"peak":{"type":"integer","description":"Input field: peak."},"trough":{"type":"integer","description":"Input field: trough."}}},"responseSchema":{"type":"json","example":{"peak":120,"schema":"delx/util-drawdown-pct/v1","trough":90,"drawdown_pct":25}},"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_UoQFcGKV1xqz15rRjcTUS","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":"Calculates the percentage drawdown between a peak and trough value, returning the drawdown_pct as a decimal-free integer.","exampleAgentPrompt":"What's the drawdown percentage if the peak was 120 and the trough was 90?","exampleUseCases":[{"title":"Portfolio risk drawdown check","prompt":"My portfolio peaked at 15000 and dropped to 11250 at its lowest — what's the drawdown percentage?"},{"title":"Crypto price decline measurement","prompt":"Bitcoin hit a peak of 68000 and then bottomed out at 51000, can you calculate the drawdown percentage?"},{"title":"Stock strategy backtesting","prompt":"During backtesting my strategy peaked at 250 and hit a trough of 200 — what was the drawdown percentage for that run?"}],"resultDescription":"A JSON object containing the echoed peak and trough integers, the computed drawdown_pct as a percentage integer (e.g. 25 for a 25% drop), and a schema identifier string ('delx/util-drawdown-pct/v1') for verification purposes.","failureModes":["Missing peak or trough field returns a validation error","Non-integer values for peak or trough may cause a type error","Peak value equal to zero could cause a division-by-zero error","Trough greater than peak may return a negative or zero drawdown (undefined behavior)","Payment failure over x402 protocol prevents the call from completing"],"whenToPreferThis":"Use this endpoint when you need a simple, verifiable, pay-per-call computation of drawdown percentage without setting up any account or subscription. Ideal for AI agents that need an auditable, on-chain payment trail (USDC on Base or Solana) for financial metric computations. Prefer over in-agent math when you need schema-versioned, verifiable results for downstream logging or compliance.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:06.179Z","isFirstParty":false,"canonicalSlug":"delx-commerce-drawdown-percentage-calculator-2c87643a"}