WebSocket Authentication
WSProduction
wss://ws.btse.com/ws/otcTestnetwss://testws.btse.io/ws/otcAuthenticate 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β
| Name | Type | Required | Description |
|---|---|---|---|
| op | String | Yes | Operation β fixed value authKeyExpires |
| args | String[] | Yes | [API_KEY, NONCE, HMAC-SHA384_SIGNATURE] |
example
Request
{
"op": "authKeyExpires",
"args": [
"<API_KEY>",
"<NONCE>",
"<SIGNATURE>"
]
}