{"uid":"cap_EcHi10Uw4N1oPVDg8LD4H","slug":"delx-commerce-volatility-sample-calculator-4511b8ea","name":"Delx Commerce — Volatility Sample Calculator","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/volatility-sample?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"returns":{"type":"array","description":"Caller-supplied period returns for sample volatility."},"periods_per_year":{"type":"number","description":"Annualization factor (e.g. 365 for daily)."}}},"responseSchema":{"type":"json","example":{"mean":0.00125,"count":4,"schema":"delx/util-volatility-sample/v1","advisory":"Descriptive sample volatility only.","annualized_vol":0.25609752,"standard_deviation":0.01340476}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WqJIgzcAaMQdcL7hUsYEr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes sample volatility (standard deviation and annualized volatility) from a caller-supplied array of period returns","exampleAgentPrompt":"Calculate the sample volatility and annualized vol for these daily returns: [0.012, -0.005, 0.008, 0.021] — use 365 as the annualization factor.","exampleUseCases":[{"title":"Portfolio risk assessment from daily returns","prompt":"I have these daily returns for my portfolio over the past week: [0.012, -0.005, 0.008, 0.021, -0.003]. Can you calculate the annualized volatility using 365 as the annualization factor?"},{"title":"Options pricing volatility input","prompt":"I need to price some options and need the historical volatility input. Here are 30 daily log returns: [0.002, -0.008, 0.015, -0.001, 0.007, 0.003, -0.012, 0.009, 0.001, -0.004, 0.006, 0.011, -0.003, 0.002, -0.007, 0.008, 0.004, -0.005, 0.013, -0.002, 0.006, -0.009, 0.001, 0.005, -0.003, 0.007, 0.002, -0.006, 0.004, 0.008]. Annualize using 365 periods per year."},{"title":"Monthly return series volatility for fund reporting","prompt":"I have monthly returns for a fund: [0.03, -0.02, 0.04, 0.01, -0.015, 0.025]. What's the annualized volatility using 12 periods per year, and what's the standard deviation?"}],"resultDescription":"Returns a JSON object containing: the mean return, count of observations, annualized volatility, standard deviation, the schema identifier (delx/util-volatility-sample/v1), and an advisory note clarifying this is descriptive sample volatility only.","failureModes":["Empty or missing returns array causes computation failure","Non-numeric values in the returns array cause parsing errors","Fewer than 2 data points may produce unreliable or undefined standard deviation","Missing periods_per_year defaults may produce un-annualized results","Payment failure via x402 (insufficient USDC balance) blocks the request"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-use volatility computation without any signup or subscription overhead, and when you need verifiable on-chain payment via USDC. Ideal for AI agents performing one-off financial analytics tasks, risk calculations, or volatility inputs for derivative pricing, especially when the agent controls a crypto wallet. Prefer over heavyweight financial data platforms when you already have the return series and just need the statistical computation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:47.534Z","isFirstParty":false,"canonicalSlug":"delx-commerce-volatility-sample-calculator-4511b8ea"}