{"uid":"cap_A4s0dOChoUXURNKmAibOo","slug":"crypto-technicals-x402-backtest-e47014bb","name":"Crypto Technicals X402 — Backtest","description":"Pay-per-call crypto technical analysis for AI agents (x402, USDC on Base). Daily trend regime, Donchian levels, ATR stops, signals and backtests computed with the code of a live trend-following bot from Binance spot klines.","url":"https://vmi3089643.contaboserver.net/v1/backtest","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"years":{"type":"number","description":"0.5 to 4"},"params":{"type":"object"},"symbol":{"type":"string"},"strategy":{"type":"string","description":"see GET /v1/strategies"}}},"responseSchema":{"type":"json","example":{"bars":730,"stats":{"cagr":0.085,"netPnl":180.5,"trades":12,"winRate":0.42,"maxDrawdown":0.12,"profitFactor":2.1},"years":2,"symbol":"BTCUSDT","interval":"1d","strategy":"donchian_daily"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_aLswqCvKrD5pqsECVpQvg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a historical backtest of a crypto trend-following strategy on Binance spot klines, returning CAGR, PnL, win rate, max drawdown, and profit factor.","exampleAgentPrompt":"Run a 2-year backtest of the donchian_daily strategy on BTCUSDT and tell me the CAGR, win rate, max drawdown, and profit factor.","exampleUseCases":[{"title":"Bitcoin strategy performance review","prompt":"Can you backtest the donchian_daily strategy on BTCUSDT over the last 2 years and show me the CAGR, max drawdown, and profit factor?"},{"title":"Altcoin trend-following evaluation","prompt":"Run a 1-year backtest on SOLUSDT using the donchian_daily strategy — I want to see the win rate, net PnL, and number of trades."},{"title":"Multi-year strategy stress test","prompt":"Test the donchian_daily strategy on ETHUSDT going back 3 years and tell me how it held up — specifically the max drawdown and profit factor."}],"resultDescription":"A JSON object containing the strategy name, symbol, interval, number of bars analyzed, years covered, and a stats block with CAGR, net PnL, trade count, win rate, max drawdown, and profit factor.","failureModes":["Invalid symbol not listed on Binance returns an error","Strategy name not found — must match a value from GET /v1/strategies","Years parameter outside 0.5–4 range rejected","Payment failure via x402/USDC on Base blocks the request","Insufficient historical data for very new tokens","Network timeout on Contabo VPS under load"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call backtest of a trend-following crypto strategy using real Binance kline data, especially if you want Donchian channel or ATR-stop signals without running your own infrastructure. Best when cost-efficiency per call ($0.02 USDC) and on-chain micropayment settlement via x402 on Base are acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:30:45.208Z","isFirstParty":false}