Skip to main content

WebSocket Authentication

WSProductionwss://ws.btse.com/ws/otcTestnetwss://testws.btse.io/ws/otc

Authenticate the session to access private topics (Quote Stream). Signature: HMAC-SHA384(secret, "/ws/otc" + nonce)

Signature example:

echo -n "/ws/otc1624985375123" | openssl dgst -sha384 -hmac "<your-secret>"

Args array:

  • Index 0: API key
  • Index 1: Current timestamp (nonce)
  • Index 2: HMAC-SHA384 hex signature

Request Parameters​

NameTypeRequiredDescription
opStringYesOperation β€” fixed value authKeyExpires
argsString[]Yes[API_KEY, NONCE, HMAC-SHA384_SIGNATURE]
example

Request

{
"op": "authKeyExpires",
"args": [
"<API_KEY>",
"<NONCE>",
"<SIGNATURE>"
]
}