{"uid":"cap_r2KK9abeCvkuYljxYCnCI","slug":"memecoin-backtest-engine-85577a11","name":"Memecoin Backtest Engine","description":"Pay-per-call data and tools for AI agents, $0.002-0.01 per call in USDC via x402 (Base, Polygon or Solana), no account or API key; MAX tiers ($0.05-0.25) run deeper jobs. Agent toolkit: web search, search + read top pages, any page as clean markdown with a prompt-injection check, which-x402-API-to-call recommender, seller check. Data: Google Maps places with contacts, YouTube video data and transcripts, job listings (Indeed, LinkedIn, 13 boards), Google Ads Transparency, TikTok comments, Pinterest, Airbnb, Redfin, AliExpress, app stores, live sports, website and SEO checks, Shopify store tech stacks, and onchain token / address risk checks.","url":"https://agent-data.centorprat.workers.dev/crypto/backtest?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"days":{"type":"number","description":"lookback, default 7"},"exits":{"type":"object","description":"takeProfit, stopLossPct, trailingStopPct, trailingActivatesAtPct, maxHoldMinutes"},"entryAt":{"description":"5 | 15 | 30 | 60 (pump.fun snapshot age) or \"signal\" (a preset's live signals)"},"strategy":{"type":"object","description":"screen strategy (preset and/or filters); GET /crypto/screen-fields"},"costPctPerSide":{"type":"number","description":"fees + slippage per side, default 2"}}},"responseSchema":{"type":"json","example":{"byDay":{"2026-10-24":{"trades":140,"avgReturnPct":4.1}},"trades":412,"examples":{"best":[],"worst":[]},"winRatePct":31.8,"exitReasons":{"stop-loss":260,"take-profit":61},"avgReturnPct":6.4,"medianReturnPct":-27.1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eyZXeJU0UBxfMMsI7bjud","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Backtests a memecoin trading strategy against historical pump.fun token launches using 1-minute bars, replaying your screen filters and exit rules to report win rate, returns, and trade analytics.","exampleAgentPrompt":"Backtest my pump.fun memecoin strategy over the last 14 days, entering at 15-minute token age, with a 50% take-profit, 20% stop-loss, and 2% fees per side — what's the win rate and average return?","exampleUseCases":[{"title":"Validate strategy before live trading","prompt":"Before I start trading memecoins live, backtest my filter strategy on pump.fun tokens over the last 7 days — enter at 30-minute age, take profit at 80%, stop-loss at 25%, trailing stop activates at 40%, and assume 2% fees per side. Show me win rate and exit breakdown."},{"title":"Compare entry timing on pump.fun","prompt":"Run a backtest on my memecoin screen strategy entering at 5-minute token age versus 60-minute age over the last 30 days, with a 30% stop-loss and 100% take-profit target and 1.5% cost per side — which entry time performs better?"},{"title":"Evaluate preset signal ledger performance","prompt":"Backtest the preset signal ledger using entry type 'signal' over the past 14 days with a trailing stop of 15% activating at 20% gain, a max hold of 60 minutes, and default fees — give me the per-day results and best/worst trades."}],"resultDescription":"Returns a structured report including win rate, average and median return after fees, breakdown of exit reasons (take-profit tier hits, stop-loss, trailing stop, time stop), per-day performance results, and the best and worst individual trades from the backtest window.","failureModes":["Invalid entryAt value (must be 5, 15, 30, 60, or 'signal')","Strategy filters reference unknown fields — call GET /crypto/screen-fields first","Lookback window too large with insufficient historical data","Missing required strategy object in request body","Payment failure or insufficient USDC balance for $0.01 per-call fee","Conflicting exit parameters (e.g. trailing stop activates above take-profit)"],"whenToPreferThis":"Use this endpoint when you need to validate a pump.fun memecoin trading strategy — including screen filters and multi-tier exit logic — against real historical token launches before deploying capital. Prefer it over live screeners when you want quantified performance metrics (win rate, return distribution, exit breakdown) with realistic fee modeling. It is especially useful when comparing entry timing windows (5/15/30/60 min) or validating that a preset's signal ledger has edge.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:33:51.948Z","isFirstParty":false,"canonicalSlug":"memecoin-backtest-engine-85577a11"}