{"uid":"cap_9FK9BVb8-1FHnz-Z3Eh3-","slug":"market2000-xyz-ohlc-time-series-pattern-matching-92a66a9a","name":"market2000.xyz OHLC Time Series Pattern Matching","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_ohlc","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":["ticker","start_date","end_date","timeframe","query_return","patterns"],"properties":{"ticker":{"type":"string"},"end_date":{"type":"string"},"patterns":{"type":"array","items":{"type":"object","required":["pattern_id","dates","opens","highs","lows","closes","similarity","query_return","description"],"properties":{"lows":{"type":"array","items":{"type":"number"}},"dates":{"type":"array","items":{"type":"string"}},"highs":{"type":"array","items":{"type":"number"}},"opens":{"type":"array","items":{"type":"number"}},"closes":{"type":"array","items":{"type":"number"}},"pattern_id":{"type":"integer","description":"Rank (1 = closest match)"},"similarity":{"type":"number"},"description":{"type":"string"},"query_return":{"type":"number"}}},"description":"Ranked list of historical analog windows with full OHLC data"},"timeframe":{"type":"string"},"start_date":{"type":"string"},"query_return":{"type":"number","description":"Total return of the query window (decimal)"}}}}}}},"responseSchema":{"type":"json","example":{"ticker":"AAPL","end_date":"2024-03-01","patterns":[{"lows":[154.9,156.1,157],"dates":["2020-01-15 00:00:00","2020-01-16 00:00:00","2020-01-17 00:00:00"],"highs":[157.3,158.2,159.1],"opens":[155.1,156.8,157.5],"closes":[156.23,157.81,158.4],"pattern_id":1,"similarity":0.082,"description":"AAPL pattern match 1","query_return":0.043}],"timeframe":"1d","start_date":"2024-01-02","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_X5xwX4Bgjq_RG-vnR4SSz","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 OHLC candlestick patterns in a stock's price history that most closely match a recent query period, returning similarity scores and associated returns.","exampleAgentPrompt":"Find the top historical OHLC patterns in AAPL that most closely match its price action from January 2nd to March 1st 2024, using a daily timeframe, and show me the similarity scores and what returns followed each match.","exampleUseCases":null,"resultDescription":"A JSON object containing the ticker, date range, timeframe, and an array of matching historical patterns. Each pattern includes open/high/low/close price arrays, the dates of the match, a similarity score (lower = more similar), a pattern ID, a description, and the return that followed that historical pattern. Also includes the query period's return for reference.","failureModes":["Invalid or unknown ticker symbol returns an error or empty pattern list","End date before start date causes a request error","Timeframe not supported by the endpoint returns a validation error","Insufficient price history for the given ticker or date range","Payment not processed or x402 USDC transaction fails, blocking the response"],"whenToPreferThis":"Use this endpoint when you need to identify historical price patterns in OHLC stock data that resemble a current or recent period — ideal for quantitative analysts, trading agents, or financial research workflows that need data-driven historical analogs rather than subjective chart reading. Prefer this over general market data APIs when the goal is time-series similarity matching with return attribution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:44:53.738Z","isFirstParty":false}