WebSocket Reference
market:resolved
Market resolution notices so clients can auto-close positions
The market:resolved channel broadcasts a notice when a market resolves, so a client can move the position out of the open list and reflect the outcome without a manual refresh. A per-market variant (market:resolved:<marketId>) and a broadcast variant (market:resolved) are both emitted by the market-sync pipeline.
Subscribe
{ "event": "subscribe", "data": { "channel": "market:resolved:<marketId>" } }Replace <marketId> with the target market UUID, or subscribe to market:resolved for all resolution notices.
Unsubscribe
{ "event": "unsubscribe", "data": { "channel": "market:resolved:<marketId>" } }Server Broadcast
{
"channel": "market:resolved:c5a2e7f1-3b4d-4e6a-8f9c-1d2e3f4a5b6c",
"data": {
"marketId": "c5a2e7f1-3b4d-4e6a-8f9c-1d2e3f4a5b6c",
"outcome": "yes",
"resolvedAt": 1716923400000
}
}Payload Schema
| Field | Type | Description |
|---|---|---|
marketId | string | Market identifier (UUID) |
outcome | string | Winning outcome (e.g. yes, no) |
resolvedAt | number | Unix millisecond epoch of resolution |
Notes
- Public channel — no authentication required.
- Emitted by the market-sync pipeline when a market's resolution is detected.