{"uid":"cap_j4XHbk5tuIAx65C5s92Yo","slug":"lite-sortino-ratio-calculator-8d299a02","name":"Lite Sortino Ratio Calculator","description":"Lite Sortino using downside stdev of negative returns. Call when penalizing downside volatility without a full analytics stack. Returns sortino-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/sortino-lite","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"returns":{"type":"array","description":"Input field: returns."}}},"responseSchema":{"type":"json","example":{"n":4,"mean":0.00875,"schema":"delx/util-sortino-lite/v1","sortino":0,"downside_stdev":0}},"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_iyz_TptKKT3NgMJD-kJWR","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 Sortino-like ratio using downside standard deviation of negative returns, returning the ratio and sample count as deterministic JSON.","exampleAgentPrompt":"Calculate the Sortino ratio for this return series: [0.02, -0.01, 0.03, -0.04, 0.01, -0.02, 0.005] — I want to see how it penalizes downside volatility specifically.","exampleUseCases":[{"title":"Portfolio downside risk screening","prompt":"I have these monthly portfolio returns: [0.03, -0.02, 0.04, -0.05, 0.01, -0.01, 0.02, -0.03] — can you compute the Sortino ratio so I can see how it penalizes the losing months?"},{"title":"Strategy comparison on downside risk","prompt":"Compare these two return streams for me by computing a Sortino ratio for each — strategy A: [0.01, -0.005, 0.02, -0.03, 0.015] and strategy B: [0.005, -0.02, 0.03, -0.01, 0.01] — I only care about downside volatility."},{"title":"Algo trading drawdown evaluation","prompt":"My algo produced these daily returns last month: [0.002, -0.003, 0.001, -0.008, 0.004, -0.001, 0.003, -0.005, 0.002, -0.004] — run a Sortino calculation so I can see if the downside deviation is killing my risk-adjusted performance."}],"resultDescription":"Returns a deterministic JSON object containing a Sortino-like ratio (computed from the downside standard deviation of negative returns in the input series) and n (the count of observations used in the calculation). No external data sources are consulted; the result is purely a local mathematical computation.","failureModes":["Empty or missing returns array — likely returns an error or undefined ratio","Insufficient negative returns to compute downside standard deviation (e.g., all positive returns) — n may be zero, ratio undefined or null","Non-numeric values in the returns array — may return an error or NaN","Payment failure via x402 — request not processed if USDC payment is not confirmed"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap, deterministic Sortino-like ratio from a return series without deploying a full analytics library or stack. It is ideal for lightweight agents, serverless pipelines, or environments where installing scipy/pandas is impractical. Prefer it over full Sharpe ratio endpoints when downside-only penalty is specifically desired. Not suitable when you need a Sharpe ratio, full analytics report, or live market data integration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:01:00.543Z","isFirstParty":false}