{"uid":"cap_1KuvTsxtYR5p1TU1Wvb6C","slug":"pocket-network-backtest-reconciler-02b2f723","name":"Pocket Network Backtest Reconciler","description":"Do the claimed backtest numbers follow from the trades? Send a TradingView \"List of trades\" CSV or a JSON trade list with the claimed metrics; get net profit, win rate, profit factor, drawdown and per-trade P&L recomputed, each claim marked MATCH or MISMATCH, and findings such as cost-free backtests. Deterministic, no market data. POST /v1/reconcile.","url":"https://agent.pocket.network/v1/backtest-reconcile-v1?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"trades":{"type":"array","items":{"type":"object","properties":{"n":{"description":"Trade number."},"qty":{"type":"number"},"side":{"enum":["long","short"],"type":"string"},"exit_time":{"type":"string"},"commission":{"type":"number"},"entry_time":{"type":"string"},"exit_price":{"type":"number"},"entry_price":{"type":"number"},"reported_pnl":{"type":"number"}}},"description":"The trades as a JSON list, in place of trades_csv."},"claimed":{"type":"object","description":"The claimed metrics to check, any of net_profit, net_profit_pct, gross_profit, gross_loss, total_trades, win_rate, profit_factor, max_drawdown, max_drawdown_pct, avg_trade, largest_win, largest_loss."},"commission":{"type":"object","properties":{"type":{"enum":["percent","per_contract","cash_per_order"],"type":"string"},"value":{"type":"number"}},"description":"Commission applied to every trade."},"trades_csv":{"type":"string","description":"A TradingView Strategy Tester \"List of trades\" CSV export."},"tolerance_pct":{"type":"number","default":0.5,"description":"How far a claim may differ, in percent, and still MATCH."},"initial_capital":{"type":"number","description":"Starting capital for the percentage figures."},"single_position":{"type":"boolean","default":true,"description":"Flag overlapping trades."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_su9Zo7YwD3PURFRX09ypi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Deterministically recomputes trading backtest metrics from raw trade data and flags any claimed statistics (net profit, win rate, drawdown, etc.) as MATCH or MISMATCH","exampleAgentPrompt":"I got a TradingView strategy backtest claiming 68% win rate, 2.3 profit factor, and $42,500 net profit — here's the 'List of Trades' CSV export. Can you recompute all those numbers from the raw trades and tell me which claims match and which don't? Use 0.1% commission per trade and $100,000 starting capital.","exampleUseCases":[{"title":"Auditing a strategy marketplace listing","prompt":"I'm thinking of buying this algo strategy that claims 75% win rate and 3.1 profit factor. Here's its TradingView trades CSV. Can you recompute those stats from the actual trades and flag any mismatches? Assume $50,000 starting capital and no commission, since the seller didn't mention any."},{"title":"Validating a hedge fund pitch deck backtest","prompt":"A fund sent us a backtest showing $1.2M net profit and only 8% max drawdown. I have the JSON trade list they provided. Can you recompute every metric — net profit, drawdown, win rate, profit factor — and tell me which ones match their claims within 0.5% tolerance? Commission is $5 per order."},{"title":"Detecting cost-free backtest assumptions","prompt":"I ran a backtest on TradingView and want to double-check my own reported numbers before publishing them. Here's the trades CSV and my claimed stats: 61% win rate, 1.8 profit factor, $18,200 net profit. Reconcile them with 0.05% commission per trade and $25,000 initial capital, and flag any fishy assumptions like missing commissions."}],"resultDescription":"A structured report containing recomputed values for each claimed metric (net profit, net profit %, gross profit, gross loss, total trades, win rate, profit factor, max drawdown, avg trade, largest win, largest loss), a MATCH or MISMATCH label per claim based on the tolerance threshold, per-trade P&L breakdown, and notable findings such as overlapping positions or cost-free assumptions.","failureModes":["Missing required trades data (neither trades nor trades_csv provided) — returns validation error","Malformed CSV format not matching TradingView export structure — returns parse error","Claimed metric keys not recognized — unrecognized fields silently skipped or flagged","Overlapping trade timestamps with single_position=true — flagged as anomaly in findings","Tolerance_pct set to 0 may cause spurious MISMATCHes due to floating-point precision"],"whenToPreferThis":"Use this endpoint when you need deterministic, offline verification of trading backtest statistics — particularly when auditing strategy seller claims, reviewing fund pitch decks, or sanity-checking your own TradingView exports. It requires no live market data feed and is the right choice when you want a MATCH/MISMATCH verdict with per-trade P&L granularity rather than simply rerunning a backtest engine. Prefer it over manual spreadsheet audits or re-running the strategy in a simulator when you already have the trade list and want fast, programmatic verification.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T00:48:37.233Z","isFirstParty":false,"canonicalSlug":"pocket-network-backtest-reconciler-02b2f723"}