wss://socket.bayse.markets/ws/v1/markets and subscribe to the
lifecycle channel. No API key or HMAC signature is required. Each event
subscription includes the parent event and all its child markets.
Subscribe
Subscribe to up to 50 events per request:eventId:
eventId or eventIds in a request. Arrays must contain 1–50 valid
UUIDs. Duplicate entries count toward the limit and subscribe only once. Empty,
oversized, or invalid lists reject the entire request without changing your
subscriptions. The limit applies per request. You can send additional requests
for more events, subject to the message rate limit.
Messages received
Parent event changed
Child market changed
status uses the API’s lowercase values, such as open, paused, closed,
resolved, and cancelled. timestamp is the server send time in Unix
milliseconds. Each notification identifies one entity, including when you
subscribe with an array.
Lifecycle WebSocket events are typically delayed by up to one minute and carry
the latest status change for each entity.
Handle parent and child notifications independently. Closing or resolving an
event can also close or resolve its markets, producing both message types. A child market can resolve
while the parent remains open, producing only a market notification. Accept
either arrival order and refresh the affected event to obtain its current state.
A status notification does not confirm that payouts have completed. Changes to
outcomes or other fields without a status change do not produce this notification.
Unsubscribe
Use the same fields withtype: "unsubscribe". The same validation and 50-entry
limit apply, and unrelated subscriptions remain active.