You can optionally track your WebSocket subscription using the following fields:
subscriptionId (optional):
A unique ID for your WebSocket connection. If not provided, it is automatically generated by the server.
subscriptionTracking (optional, default: false):
Set this to true to include the subscriptionId and additional connection details in the response logs. Helpful for debugging and managing multiple active streams.
This websocket sends at the end of each block on every chain we track, an update of multichain weighted average prices & weights for the assets tracked in the Oracle Feed program.
Any asset that has onchain contracts can be tracked this way, on demand.
You can unsubscribe from the stream by sending an unsubscribe message:
Unsubscribe from all active streams:
Send an empty payload as shown above.
This will terminate all active subscriptions associated with the current WebSocket connection.
If you did not provide a subscriptionId when subscribing, one is generated automatically. To retrieve it, set “subscriptionTracking”: “true” in the subscription payload. Otherwise, it will not be returned in the response.
Unsubscribe from a specific stream type:
To unsubscribe all streams of a given type (e.g., all “pair”, “market” streams):