CCXT.WS.Auth.IsoPassphrase (ccxt_client v0.6.1)

Copy Markdown View Source

ISO Passphrase auth pattern — okx family, kucoin family, bitget.

Builds a 3-factor login frame: apiKey, passphrase, and a timestamp+"GET"+"/users/self/verify" HMAC-SHA256 base64 signature.

Requires credentials.password (the exchange's passphrase). If missing, returns {:error, :passphrase_required}.

Example Frame (okx)

%{
  "op" => "login",
  "args" => [
    %{
      "apiKey" => "api_key_here",
      "passphrase" => "passphrase_here",
      "timestamp" => "1699999999",
      "sign" => "base64_signature"
    }
  ]
}

Config

KeyDefaultPurpose
:timestamp_unit:seconds:seconds or :milliseconds
:op_field"op"Top-level field name
:op_value"login"Top-level field value
:timestamp_ms_override(unset)Test-only — freezes the clock