> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Scheduled Market Check

Run a recurring workflow that fetches market data, evaluates a threshold, and sends a notification.

Use this pattern for scheduled price checks, position health checks, funding rate alerts, or recurring research workflows.

Your browser does not support the video element.

## Pattern

```text
cronjob trigger -> market data action -> if condition -> alert action
```

**Scheduled market alert**

**Cron trigger**
  **Market data**
  **Threshold branch**
  **Alert action**
  **run**
  **result**
  **threshold met**

## Trigger

Use `cronjob` for recurring schedules. The trigger stores an RRULE string.

```json
{
  "type": "cronjob",
  "payload": {
    "rrule": "FREQ=HOURLY;INTERVAL=1"
  },
  "children": ["fetch_price"]
}
```

## Fetch and Compare

```json
{
  "fetch_price": {
    "type": "coingecko-get-token-price",
    "payload": {
      "ids": "ethereum",
      "vsCurrencies": "usd"
    },
    "children": ["check_threshold"]
  },
  "check_threshold": {
    "type": "if",
    "payload": {
      "condition": {
        "$and": [
          {
            "{{$nodes.fetch_price.result.ethereum.usd}}": {
              "$gte": 4000
            }
          }
        ]
      }
    },
    "children": ["send_alert"]
  }
}
```

## Alert

Use Slack, Telegram, email, or an outbound webhook. Keep the alert payload small and include the run ID or workflow link when your receiving system supports it.

**Use simulation when tuning thresholds**

Run manually with `simulate: true` while tuning threshold logic. Publish only after the condition branch behaves as
  expected.

## Related

**[Schedule triggers](/actions/trigger-reference/schedules)**

Reference for one-time and recurring schedule triggers.
  **[Blockchain data actions](/actions/reference/catalog/blockchain-data)**

Market, portfolio, token, and analytics data actions.
  **[Monitoring](/platform/monitoring-search)**

Inspect runs, failures, metrics, and activity streams.