{"uid":"cap_7kxco6WTynLKfq85jnMMH","slug":"market2000-xyz-pattern-machine-raw-2c0a5592","name":"market2000.xyz Pattern Machine Raw","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_raw","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"],"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"}}}}}}},"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}]}},"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_QvdyXQ3IDVkwvD_ebccqe","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":"Returns raw historical analog windows (dates, closes, similarity scores) for a ticker's price pattern, without computing forward-return statistics — optimized for high-volume scanning.","exampleAgentPrompt":"Find the 5 closest historical price pattern analogs for AAPL from January 2 to March 1, 2024 using Euclidean distance on daily bars — I just need the raw matched dates, closes, and similarity scores, not the forward return stats.","exampleUseCases":[{"title":"Batch screen basket for pattern matches","prompt":"I have a basket of 50 tickers I want to scan for historical price pattern analogs against their last 20 trading days — run them all through and give me the raw matched windows and similarity scores for each. Keep costs low since this is a high-volume sweep."},{"title":"Identify past BTC analogs to now","prompt":"BTC-USD has had a pretty distinct price move over the last 30 days — find the 10 closest historical analogs going back to 2017 using daily closes and return the matched date ranges, closing prices, and similarity scores. I'll compute my own forward return stats on the other side."},{"title":"Find SPY chart pattern matches","prompt":"Pull the 8 best historical analog windows for SPY matching its price action from October 1 to December 31, 2023 on daily bars — I just need the raw dates, closes, and normalized similarity scores, nothing else."}],"resultDescription":"A ranked list of up to k historical analog windows, each containing: an array of bar dates, an array of closing prices, a normalized similarity score (lower = closer match), the total return of the query window, and a human-readable description label for the match.","failureModes":["Invalid or unknown ticker symbol returns an error or empty matches","end_date not greater than start_date returns a validation error","Insufficient price history for the requested timeframe results in no matches or sparse results","Invalid metric value (not 'l1' or 'l2') causes a parameter error","Very short date windows may not produce k distinct matches","Rate limiting or payment failure returns a 402 or 429 error"],"whenToPreferThis":"Choose this endpoint over /get_patterns when you need raw analog windows at the lowest cost ($0.05/call) and do not need forward-return statistics computed. Ideal for high-volume scanning pipelines, batch screening, or when downstream logic will compute its own forward analytics. Use /get_patterns if you need full forward-return distributions already computed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:34:36.222Z","isFirstParty":false}