# Crypto Market Data – 24-Hour Condition Watcher

> Crypto Market Data – 24-Hour Condition Watcher is a paid API for AI agents from crypto-market-data.zafermemon87.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Sets up a 24-hour watch on up to 10 crypto market conditions (price, funding, liquidations, whale orders, fear/greed, etc.) checked every minute, delivering a signed webhook callback when any condition triggers.

## Facts

- Endpoint: POST https://crypto-market-data.zafermemon87.workers.dev/v1/watch?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-market-data-24-hour-condition-watcher-63d37afd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gS9a3J_bcOCoPidT-BLNU

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 crypto-market-data-24-hour-condition-watcher-63d37afd -d '<json body>'
```

Example prompt: Watch BTC's 1-hour price change and alert me via webhook at https://example.com/hooks/crypto if it drops below -3% or if any whale order exceeds $5,000,000 — label it 'BTC risk watch' and send the callback as JSON.

## When to prefer this

Choose this endpoint when you need event-driven, condition-based monitoring of crypto markets over a 24-hour window without polling yourself. It is ideal when you want to combine multiple heterogeneous metrics (price, funding, liquidations, whale activity, fear/greed, news impact) into a single watch with a signed webhook callback, rather than building your own polling loop. Prefer it over spot-data endpoints when the goal is alerting or automation triggered by market conditions rather than on-demand data retrieval.

## Known failure modes

- Missing or invalid conditions array — returns 400 with validation error
- Condition count exceeds 10 — returns 400 with maxItems violation
- Invalid metric enum value — returns 400 with enum mismatch
- Payment not included or insufficient — returns 402 Payment Required
- callback_url not HTTPS — rejected or ignored
- Token required for token-based metrics but omitted — returns 400
- Watch expires after 24 hours with no renewal — status endpoint returns expired state
- Webhook delivery failure if callback host is unreachable — no retry guarantee indicated

## How this service works

Watch the crypto market for 24 hours: up to 10 conditions (price, % change, funding, open interest, liquidations, order book, Fear and Greed, whale orders, news impact), checked every minute; when one happens you get a signed webhook and it shows in the watch's status.

## Output

Returns a watch_id, a one-time secret for authenticating callbacks, a status URL for polling, the list of conditions with their current values and whether they are currently true, the expiry timestamp, and a plain-English summary. When a condition fires, a signed POST is sent to the callback URL with the triggering condition details.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "label": {
   "type": "string",
   "description": "Optional name for your own reference (up to 80 characters)."
  },
  "format": {
   "enum": [
    "json",
    "slack",
    "discord",
    "telegram"
   ],
   "type": "string",
   "description": "How the callback is sent; detected from the callback host when left out (json for any other host)."
  },
  "conditions": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "metric",
     "op",
     "value"
    ],
    "properties": {
     "op": {
      "enum": [
       "above",
       "below"
      ],
      "type": "string",
      "description": "above: value >= threshold; below: value <= threshold. Events use above."
     },
     "token": {
      "type": "string",
      "description": "Ticker such as BTC. Required for token metrics; \"*\" (any coin) or a ticker for whale_order_usd and news_impact; omitted for fear_greed."
     },
     "value": {
      "type": "number",
      "description": "Threshold, in the metric's own unit (percent for *_pct, USD for *_usd)."
     },
     "metric": {
      "enum": [
       "price",
       "change_5m_pct",
       "change_1h_pct",
       "change_4h_pct",
       "change_24h_pct",
       "funding_8h_pct",
       "futures_premium_pct",
       "open_interest_change_1h_pct",
       "open_interest_change_24h_pct",
       "long_short_account_ratio",
       "spread_bps",
       "orderbook_imbalance",
       "buyer_share_15m",
       "volume_15m_vs_normal",
       "liquidations_1h_usd",
       "liquidations_long_1h_usd",
       "liquidations_short_1h_usd",
       "fear_greed",
       "whale_order_usd",
       "news_impact"
      ],
      "type": "string"
     }
    }
   },
   "maxItems": 10,
   "minItems": 1,
   "description": "Fires when any condition happens."
  },
  "callback_url": {
   "type": "string",
   "description": "Optional https URL that receives a signed POST when the watch fires. Without it, poll the status. A Slack or Discord incoming-webhook URL, or https://api.telegram.org/bot<token>/sendMessage?chat_id=<id>, gets a readable message."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": "watch",
  "label": "risk alerts",
  "plain": "Watching 3 conditions for 24 hours, checked every minute.",
  "secret": "<64 hex characters, shown once>",
  "status": {
   "url": "https://crypto-market-data.zafermemon87.workers.dev/watch/w_3f9c2a7e5b1d48c06a9e2f41",
   "header": "X-Watch-Secret: <secret>",
   "method": "GET",
   "price_usd": 0
  },
  "charged": true,
  "watch_id": "w_3f9c2a7e5b1d48c06a9e2f41",
  "price_usd": 0.02,
  "conditions": [
   {
    "op": "below",
    "now": -0.32,
    "token": "BTC",
    "value": -2,
    "metric": "change_1h_pct",
    "true_now": false
   },
   {
    "op": "above",
    "now": 0.0093,
    "token": "ETH",
    "value": 0.05,
    "metric": "funding_8h_pct",
    "true_now": false
   },
   {
    "op": "above",
    "now": null,
    "token": "*",
    "value": 5000000,
    "metric": "whale_order_usd",
    "true_now": null
   }
  ],
  "data_as_of": "2026-10-24T15:00:00+05:30",
  "expires_at": "2026-10-25T09:30:00.000Z",
  "callback_url": "https://example.com/hooks/crypto"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-market-data-24-hour-condition-watcher-63d37afd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from crypto-market-data.zafermemon87.workers.dev](https://www.zero.xyz/host/crypto-market-data.zafermemon87.workers.dev/llms.txt)
