{"uid":"cap_FaSFyvNThzZK4JM5Tc22y","slug":"risk-reward-ratio-calculator-602c2324","name":"Risk/Reward Ratio Calculator","description":"Risk–reward ratio = reward / risk for stop/target geometry. Call when validating setups before size allocation. Returns risk_reward ratio 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/risk-reward","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"stop":{"type":"integer","description":"Input field: stop."},"take":{"type":"integer","description":"Input field: take."},"entry":{"type":"integer","description":"Input field: entry."}}},"responseSchema":{"type":"json","example":{"risk":5,"reward":15,"schema":"delx/util-risk-reward/v1","risk_reward":3}},"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_-U-uL3JVwp_pJwGR7CxFR","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 the risk-reward ratio (reward divided by risk) for a given trade setup defined by entry, stop-loss, and take-profit levels.","exampleAgentPrompt":"What's the risk-reward ratio for a trade where my entry is 200, stop is 190, and take-profit is 230?","exampleUseCases":[{"title":"Pre-trade setup validation","prompt":"Before I size into this position, can you check the risk-reward? My entry is 50000, stop is 49000, and my take-profit target is 53000."},{"title":"Crypto scalp trade screening","prompt":"I'm looking at a scalp trade — entry at 1800, stop at 1785, and target at 1845. Is the risk-reward ratio good enough to bother with?"},{"title":"Options strategy setup check","prompt":"For this swing trade setup I have entry at 420, stop at 405, and take at 465 — what's the reward-to-risk ratio coming out to?"}],"resultDescription":"Returns a deterministic JSON object containing the computed risk_reward ratio as a numeric value, calculated as (take - entry) / (entry - stop) for a long trade, using only local arithmetic with no external data sources.","failureModes":["Missing required fields (entry, stop, or take) returns an error","Stop equal to entry results in division by zero or error","Inverted stop/take geometry (stop above entry for a long) may return negative or unexpected ratio","Integer-only inputs may lose precision for fractional price levels","Payment failure via x402 prevents endpoint access"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, serverless calculation of risk-reward ratio with no API keys or live market data dependency. Ideal for trading bots or agents that need to validate setups programmatically before committing to position sizing. Prefer it over manual calculation or spreadsheet logic when running in an automated agent pipeline that requires structured JSON output at $0.001 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:19:30.880Z","isFirstParty":false}