Private requests are signed by Geminex.Middleware.Authentication.
Signature flow
- Build payload with request path and nonce.
- JSON encode payload.
- Base64 encode payload.
- Sign encoded payload with HMAC-SHA384 using API secret.
- Attach Gemini headers:
X-GEMINI-APIKEYX-GEMINI-PAYLOADX-GEMINI-SIGNATURE
Nonce
Nonce is generated from:
System.os_time(:second)
This keeps nonce precision simple and stable for production/sandbox private calls.