The documentation for a websocket subscribe message gives this example:
{
“type”: “subscribe”,
“channel”: “user”,
“product_ids” :[“BTC-USD”],
“signature”: “XYZ”,
“api_key”: “XXX”,
“timestamp”: 1675974199
}
However, if you don’t quote the timestamp value, the authentication will fail. You have to do it like this:
{
“type”: “subscribe”,
“channel”: “user”,
“product_ids” :[“BTC-USD”],
“signature”: “XYZ”,
“api_key”: “XXX”,
“timestamp”: “1675974199”
}