{"uid":"cap_9fX5_v8234Cx5rrM0KXov","slug":"market2000-xyz-time-series-pattern-matching-api-f0c2b764","name":"market2000.xyz Time Series Pattern Matching 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/get_patterns","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","start_date","end_date"],"properties":{"k":{"type":"integer","description":"Number of analog patterns to return (default 3)"},"wrap":{"type":"boolean","description":"Allow circular search (default true)"},"metric":{"enum":["l1","l2"],"type":"string","description":"Distance metric"},"ticker":{"type":"string","description":"Asset symbol (e.g. AAPL, BTC-USD, SPY)"},"end_date":{"type":"string","description":"Query window end, exclusive (YYYY-MM-DD)"},"timeframe":{"type":"string","description":"Bar size: 1d, 1h, 30m, 15m, etc."},"start_date":{"type":"string","description":"Query window start, inclusive (YYYY-MM-DD)"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["matches","summary"],"properties":{"matches":{"type":"array","items":{"type":"object","required":["dates","closes","similarity","query_return","description"],"properties":{"dates":{"type":"array","items":{"type":"string"},"description":"Bar timestamps for the matched window"},"closes":{"type":"array","items":{"type":"number"},"description":"Closing prices for the matched window"},"similarity":{"type":"number","description":"Normalized distance score (lower = closer match)"},"description":{"type":"string","description":"Human-readable label for the match"},"query_return":{"type":"number","description":"Total return of the query window (decimal)"}}},"description":"Ranked list of historical analog windows"},"summary":{"type":"object","properties":{"Average 7 day return":{"type":"number"},"Average 30 day return":{"type":"number"},"Pattern Average return":{"type":"number"}},"description":"Aggregated forward return statistics across all matches"}}}}}}},"responseSchema":{"type":"json","example":{"matches":[{"dates":["2020-01-15 00:00:00","2020-01-16 00:00:00","2020-01-17 00:00:00"],"closes":[156.23,157.81,158.4],"similarity":0.082,"description":"AAPL pattern match 1","query_return":0.043}],"summary":{"Average 7 day return":1.2,"Average 30 day return":3.5,"Pattern Average return":2.1}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.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_MsU46X2YuR5N380FAHL8s","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":"Finds historical price pattern matches in time series data and returns similarity scores with forward return statistics","exampleAgentPrompt":"I want to find historical price patterns that look similar to AAPL's recent price action over the last 30 days — show me the closest matches, how similar they were, and what the average 7-day and 30-day returns looked like after those patterns played out.","exampleUseCases":null,"resultDescription":"Returns a list of historical pattern matches, each with matching dates, closing prices, and a similarity score, plus a summary of average 7-day return, 30-day return, and pattern average return across all matches.","failureModes":["Invalid or unsupported ticker symbol returns error","Insufficient historical data for the requested pattern window","Payment failure via x402 on Base results in 402 response with no data","Malformed POST body or missing required fields returns 400","No matching patterns found returns empty matches array"],"whenToPreferThis":"Use this endpoint when you need quantitative historical pattern matching for financial time series data with similarity scoring and forward return statistics. Prefer it over general financial data APIs when the goal is to find analogous historical market setups and estimate probable outcomes based on past pattern performance.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:43:29.734Z","isFirstParty":false}