{"uid":"cap_R1XwDD1SkS5Hon8K-AGb4","slug":"sharpe-ratio-calculator-e9256483","name":"Sharpe Ratio Calculator","description":"Historische Sharpe-Kennzahl. Stichprobenstandardabweichung n−1, risikofreie Rendite je Eingabeperiode; Annualisierung unter Unkorreliertheitsannahme. Alle Zahlen, Kurse und Vorgaben liefert der Aufrufer. Keine eigenen Kursdaten, kein Brokerzugriff, keine Ausführung. Rechenwerkzeug, keine Anlageberatung, keine Empfehlung.","url":"https://handel.halowerk.com/v1/rechner/sharpe?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"returns":{"type":"array","items":{"type":"number","maximum":1000000000000,"minimum":-1000000000000},"maxItems":5000,"minItems":2},"periods_per_year":{"type":"number","maximum":1000000000000,"minimum":1e-12},"risk_free_per_period":{"type":"number","maximum":1000000000000,"minimum":-1000000000000}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-GIRtjhUXigQx2rqk8E7p","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the historical Sharpe ratio from a user-supplied series of returns, risk-free rate, and annualization factor using sample standard deviation (n−1)","exampleAgentPrompt":"Calculate the Sharpe ratio for these 12 monthly returns: [0.02, -0.01, 0.03, 0.015, -0.005, 0.04, 0.01, -0.02, 0.025, 0.03, 0.005, 0.02], with 12 periods per year and a monthly risk-free rate of 0.002.","exampleUseCases":[{"title":"Monthly portfolio performance review","prompt":"Here are my last 24 monthly portfolio returns: [0.03, -0.01, 0.02, 0.015, -0.005, 0.04, 0.01, -0.02, 0.025, 0.03, 0.005, 0.02, 0.01, 0.03, -0.015, 0.02, 0.025, -0.01, 0.04, 0.005, 0.015, 0.03, -0.005, 0.02]. I use 12 periods per year and my monthly risk-free rate is 0.0015. What's the annualized Sharpe ratio?"},{"title":"Comparing daily trading strategies","prompt":"I have daily returns for two strategies — compute the Sharpe ratio for Strategy A: [0.001, -0.0005, 0.002, 0.0008, -0.001, 0.0015, 0.0003] using 252 trading days per year and a daily risk-free rate of 0.00005."},{"title":"Quarterly fund evaluation","prompt":"Can you calculate the Sharpe ratio for these 8 quarterly returns: [0.05, -0.02, 0.07, 0.03, -0.01, 0.06, 0.04, 0.02]? Use 4 periods per year and a quarterly risk-free rate of 0.005."}],"resultDescription":"Returns the computed (and annualized) Sharpe ratio as a numeric value, derived from the supplied returns array using sample standard deviation (n−1), the specified risk-free rate per period, and the annualization factor (periods_per_year). No market data is fetched; all inputs must be provided by the caller.","failureModes":["Returns error if fewer than 2 return values are provided (minItems: 2)","Returns error if more than 5000 return values are provided (maxItems: 5000)","Returns error if periods_per_year is zero or negative (minimum: 1e-12)","Undefined or incorrect results if returns contain non-numeric values","Division-by-zero or undefined ratio if standard deviation of returns is zero (all returns identical)","Incorrect Sharpe if caller provides mismatched period conventions (e.g., daily returns with annual risk-free rate)"],"whenToPreferThis":"Use this endpoint when you need a pure, stateless Sharpe ratio computation from your own return series without any data fetching, brokerage access, or financial advice. Prefer it over full portfolio analytics platforms when you already have the return array and just need the risk-adjusted performance metric computed correctly with sample standard deviation and flexible annualization.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T06:41:11.709Z","isFirstParty":false,"canonicalSlug":"sharpe-ratio-calculator-e9256483"}