{"uid":"cap_1QdjdIHZ_Lz9HAkpFZl8y","slug":"lite-sharpe-ratio-calculator-99259213","name":"Lite Sharpe Ratio Calculator","description":"Lite Sharpe = mean/stdev of a return sample (no rf, sample). Call when quick risk-adjusted rank of strategy return arrays. Returns sharpe-like ratio and n 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/sharpe-lite","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"returns":{"type":"array","description":"Input field: returns."}}},"responseSchema":{"type":"json","example":{"n":4,"mean":0.00875,"stdev":0.01138804197393037,"schema":"delx/util-sharpe-lite/v1","sharpe":0.7683498199278325}},"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_c9ff4vA5CTwdznMybP_Yz","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 a simplified Sharpe-like ratio (mean/stdev) from an array of returns, with no risk-free rate adjustment, for quick risk-adjusted ranking of strategies.","exampleAgentPrompt":"Calculate the Sharpe-like ratio for this return series — [0.02, -0.01, 0.03, 0.015, -0.005, 0.04, 0.01] — so I can rank it against my other strategies by risk-adjusted performance.","exampleUseCases":[{"title":"Backtest strategy ranking by Sharpe","prompt":"I have three strategy return arrays from my backtest — [0.01, 0.02, -0.005, 0.015], [0.03, -0.02, 0.04, 0.01], and [0.005, 0.005, 0.01, 0.008] — can you compute the Sharpe-like ratio for each so I can see which has the best risk-adjusted returns?"},{"title":"Screening algos before live deployment","prompt":"Before I go live with this algo, can you calculate the mean-over-stdev Sharpe score for my out-of-sample returns [0.012, -0.003, 0.022, 0.009, -0.001, 0.018, 0.007, 0.025] to see if the risk-adjusted performance holds up?"},{"title":"Comparing two portfolio allocations","prompt":"I'm deciding between two portfolio allocations — one produced monthly returns of [0.03, 0.01, -0.01, 0.04, 0.02] and the other [0.015, 0.015, 0.014, 0.016, 0.015] — compute the Sharpe-like ratio for each so I can tell which is better risk-adjusted."}],"resultDescription":"Returns a deterministic JSON object containing the Sharpe-like ratio (mean divided by standard deviation of the input returns, no risk-free rate applied, sample stdev) and n (the number of return observations used in the calculation).","failureModes":["Empty or single-element returns array causes division by zero or undefined stdev","Non-numeric values in the returns array cause computation failure","Missing or malformed 'returns' field returns a validation error","All identical return values produce a stdev of zero, making ratio undefined or infinite","Payment failure via x402 prevents endpoint access"],"whenToPreferThis":"Prefer this endpoint when you need a fast, deterministic, local-math-only Sharpe-like score with no API keys, no live market data, and no risk-free rate adjustment — ideal for quick relative ranking of strategy return arrays in automated pipelines. Use this over full Sharpe implementations when you want a simple mean/stdev ratio, don't need rf-rate adjustment, and want a cheap ($0.001 USDC) deterministic result. Not suitable when regulatory-grade risk metrics or live market feeds are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:03:21.892Z","isFirstParty":false}