# market2000.xyz Pattern Alert — Time Series Pattern Matching Watch

> market2000.xyz Pattern Alert — Time Series Pattern Matching Watch is a paid API for AI agents from market2000.xyz, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Creates a persistent watch that fires a webhook when a stock ticker's current price pattern matches a specified historical reference window.

## Facts

- Endpoint: GET https://market2000.xyz/pattern_alert
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/market2000-xyz-pattern-alert-time-series-pattern-matching-watch-6f3f1e8d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B3TtqkqNl296YdquwOTpo

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability market2000-xyz-pattern-alert-time-series-pattern-matching-watch-6f3f1e8d
```

Example prompt: Set up a pattern alert to notify https://myagent.example/hook when NVDA's current 41-day price pattern closely matches the NVDA reference window from January 1 to March 1, 2023, using a similarity threshold of 0.15, expiring on July 8, 2026.

## When to prefer this

Choose this endpoint when you need to set up a persistent, event-driven alert that fires only when a stock's current price pattern closely resembles a specific historical episode — rather than polling for price data yourself. Ideal for agents that want to automate 'pattern recurrence' trading signals without continuous monitoring overhead. Best when you have a concrete historical reference window and a defined similarity threshold in mind.

## Known failure modes

- Invalid ticker symbol returns error or empty match
- Reference window dates out of historical range may return data error
- Similarity threshold outside valid range (e.g. >1.0) causes validation failure
- Expired or invalid webhook URL may be accepted but silently fail on delivery
- Payment failure via x402 results in 402 response and no watch created
- Malformed date fields cause parsing errors

## How this service works

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.

## Output

Returns a JSON object confirming the watch was created, including a unique watch_id (UUID), status ('active'), the ticker and reference ticker, the reference window dates and duration, the similarity threshold, the webhook URL, the expiry timestamp, and a human-readable note describing when the alert will fire.

## Request schema (JSON Schema)

```json
{
 "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",
      "ref_ticker",
      "ref_start",
      "ref_end",
      "webhook_url"
     ],
     "properties": {
      "ticker": {
       "type": "string",
       "description": "Ticker to monitor"
      },
      "ref_end": {
       "type": "string",
       "description": "Reference window end (YYYY-MM-DD)"
      },
      "ttl_days": {
       "type": "integer",
       "description": "Alert lifetime 1–90 days (default 30)"
      },
      "ref_start": {
       "type": "string",
       "description": "Reference window start (YYYY-MM-DD)"
      },
      "ref_ticker": {
       "type": "string",
       "description": "Ticker whose historical window defines the reference pattern"
      },
      "webhook_url": {
       "type": "string",
       "description": "HTTPS URL to POST when pattern matches"
      },
      "similarity_threshold": {
       "type": "number",
       "description": "DTW distance threshold — fire when current pattern is closer than this (default 0.15, typical range 0.05–0.30)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "note": {
       "type": "string"
      },
      "status": {
       "type": "string"
      },
      "ticker": {
       "type": "string"
      },
      "watch_id": {
       "type": "string"
      },
      "expires_at": {
       "type": "string"
      },
      "ref_ticker": {
       "type": "string"
      },
      "ref_window": {
       "type": "object"
      },
      "webhook_url": {
       "type": "string"
      },
      "similarity_threshold": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Fires when NVDA's current 41-day pattern matches the NVDA reference window (distance < 0.15)",
  "status": "active",
  "ticker": "NVDA",
  "watch_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "expires_at": "2026-07-08T00:00:00+00:00",
  "ref_ticker": "NVDA",
  "ref_window": {
   "end": "2023-03-01",
   "days": 41,
   "start": "2023-01-01"
  },
  "webhook_url": "https://myagent.example/hook",
  "similarity_threshold": 0.15
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/market2000-xyz-pattern-alert-time-series-pattern-matching-watch-6f3f1e8d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market2000.xyz](https://www.zero.xyz/host/market2000.xyz/llms.txt)
