{"uid":"cap_aho6Es0dxDUl7O1Va3Rwk","slug":"delx-commerce-trading-expectancy-calculator-248fd7c7","name":"Delx Commerce — Trading Expectancy 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/expectancy?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"pnls":{"type":"array","description":"Input field: pnls."}}},"responseSchema":{"type":"json","example":{"n":5,"schema":"delx/util-expectancy/v1","expectancy":2.6}},"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_udGe22JGjZbCx9OYRzcfc","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 statistical expectancy of a trading strategy given a list of profit/loss values","exampleAgentPrompt":"Calculate the trading expectancy for this list of PnL values: [3.2, -1.5, 4.0, -0.8, 5.1] — I want to know the average expected return per trade.","exampleUseCases":[{"title":"Algo strategy edge verification","prompt":"I backtested my algo and got these trade PnLs: [12, -5, 8, -3, 15, -7, 10]. Can you calculate the expectancy so I know if my strategy actually has a statistical edge?"},{"title":"Day trader performance review","prompt":"Here are my last 20 trade results in dollars: [45, -20, 30, -15, 50, -10, 25, -30, 60, -5, 40, -25, 35, -8, 55, -12, 20, -40, 70, -3]. What's my trading expectancy?"},{"title":"Risk manager evaluating a new signal","prompt":"We're reviewing a new trading signal and here are its historical PnLs: [-2, 5, -1, 8, 3, -4, 6]. Compute the expectancy so we can decide whether to allocate capital to it."}],"resultDescription":"Returns a JSON object containing: 'expectancy' (a float representing the average expected profit/loss per trade, e.g. 2.6), 'n' (number of trades analyzed), and 'schema' (version identifier 'delx/util-expectancy/v1').","failureModes":["Empty or missing 'pnls' array returns an error","Non-numeric values in the pnls array may cause a computation failure","Payment not confirmed (x402 flow incomplete) results in 402 response","Malformed request body returns a 400 error"],"whenToPreferThis":"Choose this endpoint when you need a quick, low-cost ($0.001 USDC) computation of trading strategy expectancy from a raw list of PnL values, without requiring account signup. Prefer over custom implementations when you want a pay-per-result model with verifiable delivery on Base or Solana via the x402 payment protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:51.972Z","isFirstParty":false,"canonicalSlug":"delx-commerce-trading-expectancy-calculator-248fd7c7"}