connected frame, the client picks one subscription scope by sending a scope.set control message. The server translates it into a NATS subject pattern and begins forwarding matching events. Sending another scope.set replaces the current subscription.
Tiers
Optional entity filter
Add"entity": "<name>" to narrow delivery to one entity family inside the chosen scope. Useful for high-volume dashboards that only need part of the firehose.
Common values: users, relationships, accounts, orders, fills, positions, trades, balances, stats, risk, ip_logs, devices, fingerprints, hedge.
See the event catalog for the full list.
entities is the same filter as a list. A single entity still works. Each name is its own server-side subject filter.
Conflation
conflate may list only balances, positions, and stats. The server keeps the latest body per entity and account and flushes it about every 250 ms. The flushed frame carries the latest seq. Anything else returns an error frame. Fills, orders, trades, accounts.*, and risk.* are never conflated.
Partitions
For a firm that does not fit on one reader, opencount connections (up to 64). Each sends the same scope plus a different index. The server keeps events whose account_id hashes to that index. Firm-tier and user-meta events, which have no account, go to index 0. One account’s events stay on one connection, in order.
Examples
Firm-wide (high volume)
One trader, all accounts
Single account drill-down
Trader’s trades only (entity filter)
Server confirmation
Errors
user not in firm scope—user_idbelongs to a different firm.account not in firm scope—account_idis not provisioned for this firm.missing user_id/missing account_id— required field absent for the chosen scope.unknown scope— value not infirm,user,account.
NATS subject tiers
Advanced: subject patterns
Advanced: subject patterns
Clients never subscribe to NATS directly. The server maps each scope to a wildcard subject:
The
subscription field in scope.confirmed echoes the resolved pattern. Use it to debug delivery scope against the AsyncAPI document.
