The endpoint used in this example is below
wss://ws-feed.gdax.com
You can test it using the following utility
https://www.websocket.org/echo.html
{
"type": "subscribe",
"channels": [
{
"name": "ticker",
"product_ids": [
"BTC-EUR",
"ETH-EUR"
]
}
]
}
{
"type": "ticker",
"sequence": 9537693195,
"product_id": "BTC-EUR",
"price": "22950",
"open_24h": "21589.61",
"volume_24h": "2592.29258956",
"low_24h": "21430.64",
"high_24h": "23300",
"volume_30d": "69254.40965118",
"best_bid": "22942.96",
"best_ask": "22950.00",
"side": "buy",
"time": "2020-12-30T16:59:26.344287Z",
"trade_id": 32667801,
"last_size": "0.0083387"
}