{"uid":"cap_mkLuGMsTJh0CmiNGAZuMI","slug":"stop-loss-price-from-percent-34165244","name":"Stop-Loss Price from Percent","description":"Stop-loss price from entry and stop percent move. Call when placing SL levels from percent risk rules. Returns stop-loss price 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/stop-loss-pct","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"pct":{"type":"number","description":"Input field: pct."},"side":{"type":"string","description":"Input field: side."},"entry":{"type":"integer","description":"Input field: entry."}}},"responseSchema":{"type":"json","example":{"pct":0.02,"side":"long","entry":100,"schema":"delx/util-stop-loss-pct/v1","stop_loss":98}},"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_mgcuDXQXewcl2QJLl61rL","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 a stop-loss price given an entry price, a percentage risk, and trade side (long/short) using local deterministic math.","exampleAgentPrompt":"I'm entering a long trade at 48500 with a 2% stop-loss rule — what's my actual stop-loss price?","exampleUseCases":[{"title":"Long trade stop placement","prompt":"I'm going long on BTC at an entry of 65000 and I want to risk no more than 1.5% — what price should I set my stop-loss at?"},{"title":"Short trade risk calculation","prompt":"I shorted ETH at 3200 with a 0.75% stop rule — calculate the exact stop-loss price I need to place my order at."},{"title":"Automated order bot stop level","prompt":"My bot just filled a long at entry 180 and my risk config says 2.5% stop — compute the stop-loss price so I can submit the order."}],"resultDescription":"Returns a deterministic JSON object containing the computed stop-loss price based on the provided entry price, stop percent, and trade side (long/short). No external data sources or live feeds are used; the result is a pure arithmetic calculation.","failureModes":["Missing required field (entry, pct, or side) returns a validation error","Invalid side value (not long/short or equivalent) may return an error or unexpected result","Negative or zero entry price may produce nonsensical output","Percent value of 0 returns the entry price as the stop-loss","Extremely large percent values may produce prices below zero for longs — caller must validate"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, serverless computation of a stop-loss price from a percentage risk rule without requiring live market data, API keys, or any external dependencies. Prefer it over manual calculation in automated trading bots or agent workflows where consistency and auditability matter. It is ideal for pre-order risk checks or populating stop fields in order management systems.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:02:41.626Z","isFirstParty":false}