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

# Live Surveillance Stream

> Real-time Server-Sent Events (SSE) feed for sub-second market events and anomaly spikes

# Live Surveillance Stream (SSE)

Provides a persistent Server-Sent Events (SSE) streaming connection for frontends, Discord bots, and terminal dashboards.

Pushes immediate events when sudden liquidity drains, volume anomalies, or honeypot rugpulls are detected across monitored blockchains.

***

### Request Headers

**Accept** `string` *required* (default: text/event-stream)

Must be set to `text/event-stream`.

***

### Event Types

* `event: ping` — Keep-alive heartbeat dispatched every 15 seconds.
* `event: anomaly` — Flash surges, abrupt dumps, or funding rate divergence alerts.
* `event: token_audit` — Real-time notification when a newly launched token is audited by the engine.
* `event: regime_change` — Macro shift between Bullish, Defensive, or High Volatility states.

***

### Code Examples

```bash cURL theme={null}
curl -N -H "Accept: text/event-stream" "https://api.cryptechtoday.com/api/markets/intel/stream"
```

```python Python theme={null}
import httpx
import asyncio

async def listen_stream():
    url = "https://api.cryptechtoday.com/api/markets/intel/stream"
    async with httpx.AsyncClient(timeout=None) as client:
        async with client.stream("GET", url, headers={"Accept": "text/event-stream"}) as response:
            async for line in response.aiter_lines():
                if line.startswith("data:"):
                    print("Stream event:", line[5:].strip())

asyncio.run(listen_stream())
```

```javascript JavaScript (Browser / Node) theme={null}
const eventSource = new EventSource('https://api.cryptechtoday.com/api/markets/intel/stream');

eventSource.addEventListener('anomaly', (event) => {
  const alert = JSON.parse(event.data);
  console.log(`[ALERT] ${alert.symbol}: ${alert.message}`);
});

eventSource.onerror = (err) => {
  console.error('SSE connection error:', err);
};
```


## Related topics

- [Widget Streaming Prices](https://docs.cryptechtoday.com/api-reference/widget-prices.md)
- [Alpha Radar](https://docs.cryptechtoday.com/api-reference/alpha-radar.md)
- [TradingView Webhook Bot](https://docs.cryptechtoday.com/guides/tradingview-webhook-bot.md)
- [Recent Audits](https://docs.cryptechtoday.com/api-reference/recent-scans.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.