/api/v3/private/*. You receive the token and secret when you create an API key. Public GET /api/v3/ping is available without credentials.
Private request headers
Send each signature header and the idempotency key at most once.
Use the actual HTTP method from the reference. The same scheme applies to
GET, POST, PATCH, and DELETE on private routes. For a request without a body, such as checking the key, use the SHA-256 of an empty string.
Canonical string
- Assemble the eight fields in the order shown below. Put one LF (
\n) between adjacent fields. Preserve empty fields, including the eighth. With an empty key, the string ends with one LF after the nonce. - Compute HMAC-SHA256 over those bytes. Use the secret string as issued.
- Add
X-Api-Signatureto the request. Check that the path, query, body, and headers match the values you signed.
Encode query names and values according to RFC 3986. Form
name=value pairs, sort the encoded pairs lexicographically, and join them with &. Encode a space as %20. Keep list indexes, such as filter[status][0], and encode the entire name. If the URL uses [] for list entries, use indexes in list order in the canonical query. For predictable parsing, send each scalar field name once and use the field names in the reference.
JSON and file uploads
- Serialize JSON once. Compute SHA-256 over those bytes and send the same bytes with
Content-Type: application/json. The API also accepts JSON media types of the formapplication/*+json. - For an upload, send
multipart/form-datawith one file in thefilefield. Compute SHA-256 over the file contents. Multipart boundaries and part headers are outside the digest. Send other parameters in the path or query as specified by the operation. Additional multipart form fields cause a 401 withinvalid_signature, even when the file digest is correct.
Retry a request
Generate a fresh timestamp, nonce, and signature for each HTTP attempt. When retrying the same operation, reuse itsIdempotency-Key and the signed parameters. The nonce identifies one attempt. The idempotency key links the retries.
Make a signed request with Node.js
The quickstart has an HTTP request that verifies your key on your exchanger. To check the signing calculation locally, first save the example below assign.mjs or sign.php. Run node sign.mjs or php sign.php. The code prints the signature without sending a request. For a real request, replace the example secret, timestamp, and nonce.
Test vector
Use the secretexample-hmac-secret, request GET /api/v3/private/orders?per_page=5&page=2, an empty body, and no idempotency key. Set timestamp to 1767225600 and nonce to docs-vector-2026.
docs-vector-2026. The expected header is shown below.
Signature errors
On
403, check the key’s scopes and IP allow-list. See API errors for reading error.code and deciding whether to retry.
AI prompt for HMAC v2 signing
AI prompt for HMAC v2 signing