wss://advanced-trade-ws.coinbase.com
wss://advanced-trade-ws-user.coinbase.com
type
attribute that can be used to handle the message appropriately.
subscribe
message to the server indicating which channel and products to receive. This message is mandatory and you are disconnected if no subscribe
has been received within 5 seconds.
You can subscribe to multiple channels but you must send a unique subscription message for each channel.
subscribe
message or you are disconnected in 5 seconds.channel
name and jwt
:
channel
name as a string. You can only subscribe to one channel per subscription message.
jwt
can be generated by running one of the code snippets provided in the WebSocket Authentication page. Remember that you must generate a different JWT for each websocket message sent, since the JWTs will expire after 2 minutes.
unsubscribe
message. The structure is the same as subscribe
message. You can only unsubscribe from one channel per subscription message. You can also unsubscribe from a channel entirely by providing no product IDs.
subscriptions
message as a response to an unsubscribe
message.