DEV Community

Cover image for Real-Time Crypto Alerts: How to Set Up Regime Shift Webhooks
Gunnar Thorderson
Gunnar Thorderson

Posted on • Originally published at getregime.com

Real-Time Crypto Alerts: How to Set Up Regime Shift Webhooks

Real-Time Crypto Alerts: Regime Shift Webhooks

The difference between catching a regime shift and missing it is often the difference between profit and loss. Here's how to set up instant alerts for every platform.

Why Regime Shift Alerts Matter

From our data (6,730+ snapshots, 68 transitions over 25 days):

  • Average time between meaningful regime shifts: ~3 days
  • The first 2 hours after a shift are the highest-alpha window
  • Traders who adjust position sizing within 30 minutes of a shift outperform by 15-40%

Option 1: Webhook (Most Flexible)

Register a webhook endpoint to receive POST requests on regime changes:

curl -X POST https://getregime.com/api/v1/webhooks \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://your-server.com/webhook", "events": ["regime.change"]}'
Enter fullscreen mode Exit fullscreen mode

Payload on regime change:

{
  "event": "regime.change",
  "data": {
    "regime": "bear",
    "previousRegime": "chop",
    "confidence": 0.87,
    "timestamp": "2026-03-26T14:30:00Z"
  }
}
Enter fullscreen mode Exit fullscreen mode

Option 2: Slack

Use your Slack incoming webhook URL directly — we'll format the message automatically:

curl -X POST https://getregime.com/api/v1/webhooks \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{"url": "https://hooks.slack.com/services/T.../B.../xxx", "events": ["regime.change"]}'
Enter fullscreen mode Exit fullscreen mode

Option 3: Discord

Same approach with a Discord webhook URL:

curl -X POST https://getregime.com/api/v1/webhooks \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{"url": "https://discord.com/api/webhooks/.../...", "events": ["regime.change"]}'
Enter fullscreen mode Exit fullscreen mode

Option 4: Telegram (Free)

Join our public Telegram channel for regime shift alerts — no API key needed:

t.me/regime_crypto

The bot posts regime shifts, daily digests, and market intelligence.

Option 5: Poll the API

If you don't want webhooks, poll the regime endpoint every 5 minutes:

import requests, time

last_regime = None
while True:
    data = requests.get("https://getregime.com/api/v1/market/regime").json()
    if last_regime and data["regime"] != last_regime:
        print(f"SHIFT: {last_regime} -> {data['regime']} ({data['confidence']:.0%})")
        # Send your own alert here
    last_regime = data["regime"]
    time.sleep(300)
Enter fullscreen mode Exit fullscreen mode

Which to Choose?

Method Latency Setup Cost
Webhook Instant Medium Pro ($49/mo)
Telegram Instant None Free
Polling 5 min Easy Free (within limits)
Slack/Discord Instant Easy Pro ($49/mo)

For most traders: start with Telegram (free, instant). Upgrade to webhooks when you need to trigger automated actions.

Get Started


Try Regime Intelligence

Regime is a real-time crypto market regime detection API. One endpoint tells you if the market is bull, bear, or chop — so your bot only trades when conditions match your strategy.

Free API access → | See pricing → | API docs →

Top comments (0)