{"uid":"cap_59IZUTwKxntK7mCJiwwIi","slug":"delx-commerce-max-loss-calculator-aa57ccec","name":"Delx Commerce — Max Loss 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/max-loss?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"size":{"type":"integer","description":"Input field: size."},"stop":{"type":"integer","description":"Input field: stop."},"entry":{"type":"integer","description":"Input field: entry."}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-max-loss/v1","max_loss":20}},"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_-PXuKx6CQBoFXQYivgukq","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 maximum possible loss for a trade given position size, entry price, and stop-loss level","exampleAgentPrompt":"What's the maximum I can lose on a trade if I'm buying 100 shares with an entry price of 50 and a stop at 45?","exampleUseCases":[{"title":"Pre-trade risk check for stock position","prompt":"I'm about to buy 200 shares at an entry of 120 with my stop set at 110 — what's the maximum dollar loss I'm risking on this trade?"},{"title":"Automated risk guard in trading bot","prompt":"Before my bot places a futures order, calculate the max loss: position size is 50 contracts, entry is 4800, stop is 4750."},{"title":"Options position sizing sanity check","prompt":"If I enter 75 units at 30 with a stop at 25, what's the worst-case loss so I can decide if it fits my risk budget?"}],"resultDescription":"A JSON object containing the schema identifier ('delx/util-max-loss/v1') and a 'max_loss' integer representing the total maximum dollar loss for the trade given the inputs.","failureModes":["Missing required fields (size, stop, entry) returns an error response","Non-integer inputs may cause validation failure","If entry equals stop, max_loss may return 0 or an edge-case error","Payment failure via x402 protocol results in no computation being returned","Network timeouts may occur under high load"],"whenToPreferThis":"Choose this endpoint when an AI trading agent needs a fast, cheap, verifiable computation of maximum trade loss without any signup or API key management. Ideal for autonomous trading agents that need pay-per-use risk calculations settled in USDC on Base or Solana. Best when you want a deterministic arithmetic result rather than a probabilistic estimate.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:07.690Z","isFirstParty":false,"canonicalSlug":"delx-commerce-max-loss-calculator-aa57ccec"}