WebSocket Reference
market:targetprices
Dynamic target price alerts for short-duration and boundary-resolved markets
The market:targetprices channel broadcasts target price data for markets that have been assigned a target price by the short-duration pipeline or boundary resolution. Updates are pushed when a target price is established, discovered, or resolved. On subscription, the server cold-starts with the current target price if one exists.
Subscribe
{ "event": "subscribe", "data": { "channel": "market:targetprices:<marketId>" } }Replace <marketId> with the target market UUID.
Unsubscribe
{ "event": "unsubscribe", "data": { "channel": "market:targetprices:<marketId>" } }Server Broadcast
When a target price is updated, the server emits a data event with the target-price event type:
{
"channel": "market:targetprices:c5a2e7f1-3b4d-4e6a-8f9c-1d2e3f4a5b6c",
"data": {
"marketId": "c5a2e7f1-3b4d-4e6a-8f9c-1d2e3f4a5b6c",
"targetPrice": 95.5,
"timestamp": 1716923400000
}
}Payload Schema
| Field | Type | Description |
|---|---|---|
marketId | string | Unique market identifier (UUID) |
targetPrice | number | The target price value for the market |
timestamp | number | Unix millisecond epoch of the target price assignment |
Notes
- This channel does not require authentication — target price data is public
- Target prices are assigned by the short-duration pipeline (e.g., BTC/USDT rates at expiry) and boundary resolution (price caps/floors)
- On subscription, the server pushes the current target price immediately if one exists (cold-start)
- Updates are event-driven: broadcast only when the target price changes, not on a fixed interval
- Markets without assigned target prices will not produce data on this channel