{"uid":"cap_EzSezwKU1LmoI8xJ_fUiY","slug":"market-intelligence-api-backtest-c75cdaf4","name":"Market Intelligence API – Backtest","description":"Trading signal backtest: walk-forward test of each signal type over a chosen period - occurrences, win rates, average and median forward returns at 1, 5, 15 and 60 minutes, and confidence calibration. Use to judge whether the signals are worth acting on.","url":"https://api.marketintelligenceapi.com/api/v1/intelligence/backtest?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"end":{"type":"string","format":"date-time","description":"ISO-8601 backtest end timestamp. Defaults to now."},"start":{"type":"string","format":"date-time","description":"ISO-8601 backtest start timestamp. Defaults to 24 hours before end."},"window":{"enum":["1m","5m","15m"],"type":"string","default":"5m","description":"Analysis window."},"persist":{"type":"boolean","default":false,"description":"Whether to persist the backtest result."},"symbols":{"type":"string","description":"Comma-separated crypto or US equity symbols. Empty means all available symbols."},"minConfidence":{"type":"integer","default":60,"maximum":100,"minimum":0,"description":"Minimum signal confidence from 0 to 100."},"minBaselineSamples":{"type":"integer","default":10,"minimum":2,"description":"Minimum historical baseline samples; service enforces a minimum of 2."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"description":"Example JSON response returned by this endpoint"}},"additionalProperties":true}},"additionalProperties":false},"responseSchema":{"type":"json","example":{"window":"5m","signals":{"POTENTIAL_BREAKOUT":{"winRate15m":58.5,"occurrences":41,"averageReturn15mPercent":0.21}},"methodology":"walk-forward; baseline uses only preceding buckets; returns are measured after signal detection","symbolsAnalyzed":24,"signalsEvaluated":318}},"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_OOhxNL7zFthFuOGhLefTx","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":"Runs a backtest of a trading strategy using historical market data and returns performance metrics","exampleAgentPrompt":"Run a backtest on my moving-average crossover strategy using the Market Intelligence API and show me the performance metrics — equity curve, Sharpe ratio, and total return.","exampleUseCases":[{"title":"Validate momentum strategy before live trading","prompt":"Before I deploy my RSI momentum strategy, can you run a backtest on it using historical data and tell me the total return, max drawdown, and Sharpe ratio?"},{"title":"Compare strategy performance across market regimes","prompt":"Backtest my mean-reversion strategy and show me how it performed — I want to see the equity curve and key risk metrics so I can decide if it's worth running live."},{"title":"Stress-test a new algorithmic trading idea","prompt":"I've got a new moving-average crossover idea — can you run it through the backtest endpoint and give me the historical performance stats so I know if it's viable?"}],"resultDescription":"Returns a JSON object containing backtested performance metrics such as total return, Sharpe ratio, maximum drawdown, win rate, trade history, and equity curve data based on the specified trading strategy and historical market data.","failureModes":["Missing required strategy parameters returns a 400 bad request error","Invalid or unsupported strategy type causes a validation error","Insufficient historical data for the requested period returns an error","Payment not received (402) blocks execution","Server-side computation timeout for complex strategies"],"whenToPreferThis":"Use this endpoint when you need to evaluate a trading strategy's historical performance before deploying it live, especially when you want quantitative metrics like Sharpe ratio, drawdown, and return curves. Prefer this over live market data endpoints when the goal is strategy validation rather than real-time signal generation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T00:41:18.314Z","isFirstParty":false,"canonicalSlug":"market-intelligence-api-backtest-c75cdaf4"}