Skip to content

Event volume (events)

Topic: events

Traded volume per event: one number covering every market on it, so a client showing “$12,430 vol” on an event card need not fetch that event’s markets and add them up.

One topic covers every event, narrowed by the join payload. Ten events is one join, not ten.

["1","1","events","phx_join",{"event_ids":["<uuid>","<uuid>"]}]

At least one valid event_id is required. As on orderbook, an absent or unusable list is an error, not “no filter”; every event on the exchange is not served here.

{"status":"error","response":{"reason":"event_ids_required"}}

The reply echoes the filter and carries each event’s current value, so a client paints before the next trade:

{"status":"ok","response":{
"selected_event_ids":["24636b3d-f566-4dd3-8c8b-c1a6c2747789"],
"events":[{"event_id":"24636b3d-f566-4dd3-8c8b-c1a6c2747789","volume":"1370.0000"}]}}

An event with nothing recorded is omitted from events, not reported as zero, so “not known yet” stays distinct from “nothing traded”. Its id is still echoed in selected_event_ids.

orderbook and ticker send no snapshot because their producers republish on a cadence. Event volume moves only on a trade, so without this a client sits blank while the event is quiet.

event, one message per event whose value changed:

{"event_id":"24636b3d-f566-4dd3-8c8b-c1a6c2747789","volume":"1400.0000"}

volume is the event’s lifetime traded volume in dollars across every active market on it, a dollar string; see Wire format.

Every push is the whole current value, not a delta. Replace what you hold for that event_id; never add to it.

Pushes are coalesced to at most one per event per second, and an unchanged figure pushes nothing.

["1","2","events","select_event_ids",{"event_ids":["<uuid>"]}]

Same non-empty rule; an unusable list keeps the current selection and replies with an error. The reply has the join reply’s shape, current values included.

Use case Message to send
Join for two events ["3","3","events","phx_join",{"event_ids":["<uuid>","<uuid>"]}]
Change which events stream ["3","4","events","select_event_ids",{"event_ids":["<uuid>"]}]
Keep the channel alive ["3","5","events","ping",{}]

STX is operated by XV Exchange, LLC, a Designated Contract Market regulated by the U.S. Commodity Futures Trading Commission (CFTC). Contracts traded on STX are cleared by XV Clearing, LLC, a CFTC-registered Derivatives Clearing Organization. Trading involves substantial risk of loss and may not be appropriate for everyone. Members risk losing the cost to enter any transaction, including fees. Consider whether trading is appropriate for you in light of your experience and financial resources. Nothing on this site is investment advice or a recommendation to trade. Past performance is not indicative of future results.

© 2026 STX. All rights reserved.llms.txtllms-full.txtView as Markdown
Docs version v1.10.5