CCXT.Signing.HmacSha512Nonce (ccxt_client v0.6.1)

Copy Markdown View Source

HMAC-SHA512 with nonce signing pattern (Kraken-style).

Used by: Kraken and ~20 other exchanges.

How it works

  1. Generate incrementing nonce (microsecond timestamp)
  2. Add nonce to request body
  3. Hash: sha256(nonce_string + body)
  4. Concat: url_path_bytes + hash
  5. Sign: hmac_sha512(concat, base64_decode(secret))
  6. Encode as Base64

Configuration

signing: %{
  pattern: :hmac_sha512_nonce,
  api_key_header: "API-Key",
  signature_header: "API-Sign",
  nonce_key: "nonce"
}