{"uid":"cap_qh5yjZRkdqJjoCjvxMfQE","slug":"delx-commerce-sortino-lite-api-bfd8c03d","name":"Delx Commerce Sortino-Lite API","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/sortino-lite?utm_source=zero.xyz","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_oQL8ZZIhNou7UysciQO8m","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 Sortino ratio and downside standard deviation for a given array of periodic returns","exampleAgentPrompt":"Calculate the Sortino ratio for this return series: [0.02, -0.01, 0.015, -0.005, 0.03, -0.008, 0.012, -0.02]","exampleUseCases":[{"title":"Backtested strategy risk assessment","prompt":"I ran a backtest on my momentum strategy and got these monthly returns: [0.04, -0.02, 0.01, 0.03, -0.015, 0.025, -0.005, 0.02]. Can you compute the Sortino ratio so I can see how it penalizes downside risk?"},{"title":"Portfolio comparison by downside risk","prompt":"I have two sets of weekly returns for two ETFs I'm comparing. For ETF A the returns are [0.01, -0.005, 0.02, -0.01, 0.015]. Can you get the Sortino ratio and downside deviation so I can see which one has better risk-adjusted performance on the downside?"},{"title":"Trading bot performance monitoring","prompt":"My algo's last 10 daily returns were [0.003, -0.002, 0.005, -0.001, 0.004, -0.003, 0.002, 0.001, -0.004, 0.006]. What's the Sortino ratio so I can track whether it's improving over time?"}],"resultDescription":"Returns a JSON object with: the count of observations (n), the mean return, the Sortino ratio (penalizing only downside volatility), and the downside standard deviation — all following the delx/util-sortino-lite/v1 schema.","failureModes":["Empty or missing returns array — API may return error or zero values","Non-numeric values in the returns array causing computation failure","Insufficient data points for meaningful statistical computation","All returns positive (no downside deviation) — Sortino ratio may be undefined or zero"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call Sortino ratio calculation without any sign-up or API key overhead — ideal for agent workflows that occasionally need downside-risk-adjusted performance metrics on the fly. Prefer it over full portfolio analytics suites when you only need the Sortino ratio and downside deviation, not a comprehensive report.","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-sortino-lite-api-bfd8c03d"}