{"uid":"cap_MjP2KgIrPQvJy-erNVW1I","slug":"market2000-time-series-pattern-backtest-api-fe8b3e79","name":"Market2000 Time Series Pattern Backtest API","description":"An origin the crawlers already index. We count what AI agents try to buy, what they are refused, and what the AI companies take without sending anyone back. Sold per call in USDC.","url":"https://market2000.xyz/pattern_backtest","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["ticker"],"properties":{"ticker":{"type":"string","description":"Asset symbol"},"max_return":{"type":"number","description":"Max window return as decimal e.g. 0.20 = 20% (default: no upper bound)"},"min_return":{"type":"number","description":"Min window return as decimal e.g. 0.05 = 5% (default: no lower bound)"},"forward_days":{"type":"integer","description":"Forward horizon to measure after window (default 30)"},"lookback_days":{"type":"integer","description":"Window length to scan (default 20)"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"filter":{"type":"object"},"ticker":{"type":"string"},"occurrences":{"type":"integer"},"forward_days":{"type":"integer"},"generated_at":{"type":"string"},"lookback_days":{"type":"integer"},"example_windows":{"type":"array"},"forward_return_distribution":{"type":"object"}}}}}}},"responseSchema":{"type":"json","example":{"filter":{"max_return_pct":0,"min_return_pct":-5},"ticker":"SPY","occurrences":47,"forward_days":30,"lookback_days":20,"example_windows":[{"end":"2022-06-29","start":"2022-06-01","window_return_pct":-3.1,"forward_return_pct":9.2}],"forward_return_distribution":{"p10":-8.2,"p25":-2.1,"p50":3.4,"p75":7.8,"p90":13.1,"mean":2.9,"stdev":7.6,"pct_positive":61.7}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_WQ3YJrJYVtP6Xr4icw6A4","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":"Finds historical occurrences of a price pattern in a ticker's time series and returns the statistical distribution of forward returns following those patterns","exampleAgentPrompt":"Look up historical pattern matches for SPY where the 20-day return was between -5% and 0%, then show me the statistical distribution of what happened over the next 30 days — percentiles, mean, and win rate.","exampleUseCases":[{"title":"AAPL post-earnings recovery pattern analysis","prompt":"For AAPL, find all historical cases where the stock dropped between 8% and 15% over a 10-day window, then tell me the distribution of forward returns over the next 20 trading days — I want the percentiles, the average outcome, and how often it bounced back positive."},{"title":"QQQ drawdown base rates before buying","prompt":"I'm thinking about buying QQQ after this recent selloff — can you pull all the historical times it fell between 10% and 20% over a 30-day lookback and show me what typically happened in the following 30 days? Give me the full distribution including p10 through p90 and the win rate."},{"title":"SPY momentum breakout forward returns","prompt":"Look up every time SPY gained between 3% and 7% over a 15-day window and show me the statistical distribution of what happened over the next 20 trading days — I want to know the median outcome, the spread of results, and what percentage of those setups continued higher."}],"resultDescription":"A JSON object containing: the ticker and window parameters used, total number of historical occurrences matching the pattern, example windows with their lookback and forward returns, and a full forward return distribution including p10/p25/p50/p75/p90 percentiles, mean, standard deviation, and percent of positive outcomes.","failureModes":["Ticker not found or unsupported — returns error indicating invalid symbol","Insufficient historical data for the given lookback/forward combination — may return zero occurrences","Invalid filter range (e.g. min > max return) — likely returns 400 validation error","Payment failure via x402 on Base — call not processed if USDC payment is not confirmed","Overly restrictive filters yielding zero matching windows — returns occurrences: 0 with empty example_windows"],"whenToPreferThis":"Use this endpoint when you need quantitative historical base rates for a specific price pattern in a named ticker — especially when you want forward return distributions (not just point estimates) to inform probabilistic market analysis. Prefer this over generic charting or news APIs when the user needs statistically grounded 'what happened next' data after similar historical setups.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:52:37.787Z","isFirstParty":false}