{"uid":"cap_IuSOOK7BjpGD8tnzn0LMo","slug":"minara-ai-strategy-backtester-0a632757","name":"Minara AI Strategy Backtester","description":"Backtest an algorithmic trading strategy. Submit strategy source code (written in the TypeScript/PineScript-style DSL described by the companion strategy codegen prompt endpoint); the service statically checks it against real historical market data, then returns quantitative performance metrics — net return, Sharpe / Sortino / Calmar, max drawdown, win rate, profit factor, plus the full trade list and equity curve. Use it to create, iterate on and quantitatively evaluate trading strategies, tune parameters, and A/B compare variants. Supports crypto perpetual pairs (e.g. BTCUSDT, ETHUSDT) and US-stock pairs (e.g. AAPL-USD, GOLD-USDC).","url":"https://x402.minara.ai/x402/strategy-studio/backtest","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WieXpEm1LEwqCk6D3VX7P","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Backtests an algorithmic trading strategy written in a TypeScript/PineScript-style DSL against real historical market data and returns quantitative performance metrics, trade list, and equity curve.","exampleAgentPrompt":"Backtest this BTCUSDT momentum strategy for me — here's the DSL code — and give me the Sharpe ratio, max drawdown, win rate, profit factor, and the full equity curve so I can see how it performed historically.","exampleUseCases":null,"resultDescription":"Returns quantitative performance metrics including net return, Sharpe/Sortino/Calmar ratios, maximum drawdown, win rate, and profit factor, along with a complete list of all simulated trades and the full equity curve over the backtest period.","failureModes":["Invalid or unparseable DSL strategy code returns a syntax/static-check error","Unsupported trading pair symbol returns an error indicating the pair is unavailable","Insufficient historical data for the requested pair/timeframe returns a data availability error","Malformed request body returns a 400 bad request","Payment failure or insufficient USDC balance prevents the call from completing"],"whenToPreferThis":"Use this endpoint when you need to quantitatively evaluate or iterate on an algorithmic trading strategy against real historical market data for crypto perpetual pairs (e.g. BTCUSDT, ETHUSDT) or US stocks (e.g. AAPL-USD). Prefer this over paper trading or live trading when you want fast, risk-free feedback on strategy performance metrics before deploying capital.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:32:16.191Z","isFirstParty":false}