Api Endpoint

market2000.xyz

Pattern Machine OHLC — same vectorized motif search as /get_patterns, but returns full Open/High/Low/Close candlestick data for each matched pattern. Use this endpoint when you need to render candlestick charts of historical analogs. HOW TO CALL: POST /get_patterns_ohlc?ticker=AAPL&start_date=2024-01-02&end_date=2024-03-01&k=5&metric=l2&wrap=true&timeframe=1d PARAMETERS: identical to /get_patterns (ticker, start_date, end_date, k, metric, wrap, timeframe). RESPONSE FIELDS (per match): pattern_id — rank of this analog (1 = closest) dates — list of bar dates for the analog window opens — list of open prices highs — list of high prices lows — list of low prices closes — list of closing prices similarity — normalized distance score (lower = closer match) query_return — total return of your query window (%) description — human-readable label TOP-LEVEL RESPONSE FIELDS: ticker, start_date, end_date, timeframe, query_return, patterns[]

Open interactive test console

Offering

Provider
market2000.xyz
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Financial Analysis
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://market2000.xyz/get_patterns_ohlc
MIME type
application/json
First seen
2026-10-16T02:03:11.870Z
Last seen
Tags
None supplied

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.05 USDC
Atomic price: 50000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "50000",
    "payTo": "0x7a9Fa18dd9402F8d8C55Afbd59ED707BAc0e9cAf"
  }
]

Observed health

Status
Reachable
Latest latency
602 ms
Average latency
3618 ms
HTTP status
400
Last checked
Reachability
14.3% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "body": {},
  "type": "http",
  "method": "POST",
  "bodyType": "json"
}

Output schema

{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "input"
  ],
  "properties": {
    "input": {
      "type": "object",
      "required": [
        "type",
        "method",
        "body",
        "bodyType"
      ],
      "properties": {
        "body": {
          "properties": {}
        },
        "type": {
          "type": "string",
          "const": "http"
        },
        "method": {
          "enum": [
            "POST",
            "PUT",
            "PATCH"
          ],
          "type": "string"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        }
      }
    },
    "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)"
            }
          }
        }
      }
    }
  }
}