{"uid":"cap_DfChqO3ue1nkM1Iwb06oE","slug":"delx-commerce-win-rate-calculator-5d8cbcfc","name":"Delx Commerce Win Rate 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/win-rate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"pnls":{"type":"array","description":"Input field: pnls."}}},"responseSchema":{"type":"json","example":{"n":5,"wins":3,"schema":"delx/util-win-rate/v1","win_rate":0.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_33MCcpyFHfPhuU7qBa78I","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 win rate (percentage of profitable trades) from an array of PnL values","exampleAgentPrompt":"Calculate the win rate for these trade PnLs: [120, -45, 300, -80, 200] — I want to know how many were winners and what percentage that is.","exampleUseCases":[{"title":"Evaluate trading strategy performance","prompt":"I ran 5 trades with PnLs of [250, -100, 180, -60, 320] — can you calculate the win rate so I know if my strategy is profitable more often than not?"},{"title":"Algo bot daily performance check","prompt":"Here are today's bot trade PnLs: [50, -20, 30, 10, -15, 80, -5] — what was the win rate today?"},{"title":"Backtest results win rate summary","prompt":"I just finished a backtest and got these PnLs: [400, -200, 150, -75, 300, -50, 220, -90, 180, 10] — compute the win rate for me."}],"resultDescription":"Returns a JSON object with the total number of trades (n), the number of winning trades (wins), the win rate as a decimal (e.g. 0.6 for 60%), and a schema identifier string (delx/util-win-rate/v1).","failureModes":["Empty or missing pnls array returns an error or undefined result","Non-numeric values in the pnls array may cause computation failure","Payment failure via x402 prevents the call from completing","Malformed request body results in a 400-level error"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap ($0.001 USDC), no-signup computation of win rate from a flat array of PnL numbers. Ideal for AI agents doing trading analytics, strategy evaluation, or backtest summarization where you want a verifiable on-chain micropayment and don't want to implement the win-rate logic yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:58.930Z","isFirstParty":false,"canonicalSlug":"delx-commerce-win-rate-calculator-5d8cbcfc"}