Documentation Index
Fetch the complete documentation index at: https://developer.alterscope.org/llms.txt
Use this file to discover all available pages before exploring further.
wss://{host}/v2/ws/risk-events upgrades to a WebSocket and streams risk events that match a per-connection filter. Filters are query-string only and are locked at connect time — to change them, disconnect and reconnect.
Tier-gated: requires Pro or higher. Free-tier keys receive 403 on the upgrade.
Filter dimensions
Same shape as the REST/v2/risk-events/feed endpoint:
| Field | Description |
|---|---|
types | Comma-separated event types (e.g. depeg,liquidation). |
severity | Minimum severity (info, warn, critical). |
subject_id | Restrict to a specific subject (token, vault, address). |
chain | Chain identifier (ethereum, stellar, …). |
protocol | Protocol slug (aave-v3, blend, morpho-blue, …). |
Try it
Message envelope
Each message is a JSON object with a top-levelevent payload and a meta object. When meta._agentic is present the playground highlights its keys.
Close codes
| Code | Meaning |
|---|---|
1000 | Normal closure (client clicked Disconnect, navigated away, etc.). |
4401 | Auth failed (missing or revoked key). |
4403 | Tier insufficient. |
4429 | Per-tier connection limit reached. Retry with backoff. |