Api Endpoint

market2000.xyz

Pattern Machine — vectorized time series motif search. Given a query window (ticker + date range), finds the top-k closest historical price patterns using normalized L1/L2 distance. Returns matched pattern dates, closes, similarity scores, and aggregated 7-day and 30-day forward return statistics. HOW TO CALL: POST /get_patterns?ticker=AAPL&start_date=2024-01-02&end_date=2024-03-01&k=5&metric=l2&wrap=true&timeframe=1d PARAMETERS: ticker — asset symbol (e.g. AAPL, BTC-USD, SPY) start_date — query window start, inclusive (YYYY-MM-DD) end_date — query window end, exclusive (YYYY-MM-DD); must be > start_date k — number of analog patterns to return (default 3) metric — distance metric: 'l1' (Manhattan) or 'l2' (Euclidean, default) wrap — allow circular search across the full history (default true) timeframe — bar size: '1d' (default), '1h', '30m', '15m', etc. RESPONSE FIELDS (per match): dates — list of bar dates for the analog window closes — list of closing prices for the analog window similarity — normalized distance score (lower = closer match) query_return — total return of your query window (%) description — human-readable label summary — avg 7-day and 30-day forward returns across all matches PRICING: $0.25 per call.

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
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
572 ms
Average latency
3782 ms
HTTP status
400
Last checked
Reachability
15.4% over 13 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": [
            "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"
            }
          }
        }
      }
    }
  }
}