{"uid":"cap_NQ3FOaFjmog2m8dKmeOvY","slug":"crypto-technicals-x402-portfolio-backtest-f6d1f4c1","name":"crypto-technicals-x402 Portfolio 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/portfolio","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"years":{"type":"number"},"params":{"type":"object"},"riskPct":{"type":"number"},"sizePct":{"type":"number"},"strategy":{"type":"string"},"universe":{"type":"array","items":{"type":"string"}},"regimeSma":{"type":"number","description":"0 = no gate"},"maxPositions":{"type":"number"},"timeStopDays":{"type":"number"}}},"responseSchema":{"type":"json","example":{"cagr":0.19,"byYear":{},"trades":42,"maxDrawdown":0.12,"profitFactor":3.5}},"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_AzEUPhbM8CjuaWq1gxn7d","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":"Runs a configurable trend-following portfolio backtest on a universe of crypto symbols using Donchian levels, ATR stops, and regime filtering, returning CAGR, max drawdown, profit factor, and per-year breakdown.","exampleAgentPrompt":"Backtest a Donchian breakout trend strategy over 3 years on BTC, ETH, and SOL with 1% risk per trade, 10% position size, max 5 positions, a 200-day regime SMA filter, and a 20-day time stop — show me the CAGR, max drawdown, and profit factor.","exampleUseCases":[{"title":"Evaluate altcoin momentum portfolio","prompt":"Run a 2-year backtest on a trend-following strategy for BNB, SOL, AVAX, and MATIC using 2% risk per trade, 15% position size, max 4 positions, and no regime filter — what CAGR and max drawdown should I expect?"},{"title":"Compare regime-filtered vs unfiltered strategy","prompt":"Backtest a Donchian strategy on BTC and ETH over 5 years with a 200-day SMA regime gate, 1% risk, 10% size, and max 3 positions, so I can see if the regime filter improves the profit factor and reduces drawdown."},{"title":"Stress-test time-stop rules on crypto","prompt":"I want to test a trend strategy on ETH, BTC, and LTC over 4 years with a 30-day time stop, 1.5% risk per trade, 12% position size, and up to 6 open positions — give me the trade count, CAGR, and year-by-year breakdown."}],"resultDescription":"Returns a JSON object with CAGR (annualized return), max drawdown, profit factor, total trade count, and a by-year performance breakdown — all computed from Binance spot kline data using the configured strategy parameters.","failureModes":["Invalid or unsupported symbol in universe returns error or empty results","Years value too large may exceed available kline history","Payment failure (x402 USDC on Base) blocks the call entirely","Missing required fields like universe or strategy may return a 400 or malformed response","Server on Contabo VPS may have uptime/availability issues"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call, no-subscription crypto portfolio backtest grounded in real Binance kline data with live trend-following logic — particularly when you need Donchian channel levels, ATR-based stops, regime SMA filtering, and time stops all in one computation, billed in USDC via x402 at $0.03 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:04:21.432Z","isFirstParty":false}