{"uid":"cap_FSdDM26RN0gDq7xam1Zl6","slug":"backtest-reconcile-trade-p-l-verification-574893cc","name":"Backtest Reconcile — Trade P&L Verification","description":"Check a trading backtest: recompute net profit, win rate, profit factor, max drawdown and trade count from the trade list (CSV or JSON) and compare them with the claimed numbers. Returns each metric as MATCH or MISMATCH with the recomputed value and finding codes.","url":"https://x402.pokt-agent.com/backtest/reconcile?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"trades":{"type":"array"},"claimed":{"type":"object"},"commission":{"type":"number"},"trades_csv":{"type":"string"},"tolerance_pct":{"type":"number"},"initial_capital":{"type":"number"},"single_position":{"type":"boolean"}}},"responseSchema":{"type":"json","example":{"metrics":[{"name":"net_profit","claimed":10,"verdict":"MATCH","recomputed":10}],"findings":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MfsW-WFi9ODqjjZ6fKQCV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Reconciles claimed backtest performance metrics against recomputed figures from raw trade data, flagging mismatches and discrepancies","exampleAgentPrompt":"Can you reconcile this backtest report? The strategy claims a net profit of $12,500 on $100,000 initial capital with a 0.1% commission. Here are the raw trades as a list — flag any metrics that don't match within a 0.5% tolerance.","exampleUseCases":[{"title":"Third-party backtest audit","prompt":"I received a backtest report from a quant firm claiming 35% annual returns. I have their raw trade-by-trade data as a CSV and they say commission was 0.05% per trade. Can you recompute the metrics and tell me if anything is inflated or mismatched, using a tolerance of 1%?"},{"title":"Internal strategy QA before live deployment","prompt":"Before we go live, I want to verify our backtest results are self-consistent. Initial capital was $50,000, single-position mode was on, commission is 0.1%. Here are the trades and the metrics we reported internally — check if they all reconcile."},{"title":"Detecting cherry-picked performance claims","prompt":"A trading signal vendor is claiming a net profit of $8,000 from these trades with no commission. Can you recompute from the raw trade list with $10,000 starting capital and zero tolerance to see if their claimed figures actually hold up?"}],"resultDescription":"A JSON object containing an array of metrics, each with the metric name, the claimed value, the recomputed value, and a verdict (MATCH or MISMATCH), plus a findings array listing any detected discrepancies or anomalies.","failureModes":["trades array and trades_csv both absent — endpoint cannot recompute without trade data","claimed metrics object missing — nothing to reconcile against","commission or initial_capital values inconsistent with trade data leading to divergent recomputation","malformed CSV format causing parse failure","tolerance_pct set too tightly causing false MISMATCH verdicts on rounding differences","payment failure via x402/USDC on Base blocks request before processing"],"whenToPreferThis":"Use this endpoint when you need to independently verify or audit claimed backtest performance metrics against raw trade data — especially when evaluating third-party strategy reports, validating internal QA pipelines, or checking for inflated statistics. It is pay-per-call with no account required, making it ideal for one-off audits. Prefer it over manual spreadsheet checks or general-purpose computation tools when you need a structured verdict with named metric comparisons.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T12:41:29.510Z","isFirstParty":false,"canonicalSlug":"backtest-reconcile-trade-p-l-verification-574893cc"}