{"uid":"cap_vezUUxo0Gdv9DedZ9JqJW","slug":"delx-commerce-pairs-z-score-calculator-73d7308c","name":"Delx Commerce — Pairs Z-Score 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/pairs-zscore?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"spread":{"type":"array","description":"Spread series for pairs z-score"}}},"responseSchema":{"type":"json","example":{"mean":1,"stdev":0.1290994448735805,"schema":"delx/util-pairs-zscore/v1","zscore":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_TiV-TvHj55haxpn3cjBup","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 z-score, mean, and standard deviation of a spread series for statistical pairs trading analysis","exampleAgentPrompt":"Calculate the z-score for this spread series I got from subtracting ETH prices from BTC prices over the last 30 days: [0.5, 0.7, 0.3, -0.1, 0.8, 1.2, 0.9, 0.4, -0.2, 0.6] — I need the mean, standard deviation, and z-score to decide if the spread is extreme enough to trade.","exampleUseCases":[{"title":"Mean reversion entry signal detection","prompt":"I'm running a pairs trade on AAPL vs MSFT and I have their 60-day spread series — can you compute the z-score so I know if the current deviation is statistically significant enough to enter a position?"},{"title":"Crypto pairs trading bot decision","prompt":"My trading bot tracks the ETH/BTC spread. Here's the last 50 daily spread values: [0.2, 0.4, -0.1, 0.6, 0.9, ...]. Compute the z-score so I can trigger a mean reversion trade when it's beyond 2 standard deviations."},{"title":"Spread normalization for backtesting","prompt":"I'm backtesting a statistical arbitrage strategy and need to normalize this spread series to z-scores so I can compare signals across different asset pairs — can you compute the mean, stdev, and z-score for this array of spread values?"}],"resultDescription":"Returns a JSON object containing the mean of the spread series, the standard deviation (stdev), the current z-score of the spread, and a schema identifier string ('delx/util-pairs-zscore/v1') for versioned result validation.","failureModes":["Empty or missing 'spread' array results in a validation error","Non-numeric values in the spread array cause computation failure","A spread array with fewer than 2 elements cannot produce a meaningful standard deviation","Payment failure via x402 (insufficient USDC balance) blocks the request","Malformed JSON body returns a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call statistical computation of z-scores for pairs trading or spread analysis without managing your own math infrastructure. It is ideal for AI agents running quantitative strategies that need on-demand, verifiable statistical results billed in USDC with no signup or subscription required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:53.465Z","isFirstParty":false,"canonicalSlug":"delx-commerce-pairs-z-score-calculator-73d7308c"}