{"uid":"cap_EzSezwKU1LmoI8xJ_fUiY","slug":"market-intelligence-api-backtest-c75cdaf4","name":"Market Intelligence API – Backtest","description":"Web site created using create-react-app","url":"https://api.marketintelligenceapi.com/api/v1/intelligence/backtest","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"}},"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":{"example":"JSON response for this endpoint"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OOhxNL7zFthFuOGhLefTx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","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-09-19T18:54:38.494Z","isFirstParty":false}