request_id, signing the base64 text instead of the decoded bytes.
Code samples in the Trading API reference
The Trading API reference auto-generates curl, Python, and JavaScript samples per endpoint. Those samples build the HTTP request, but they do not sign it. For a signed-body endpoint the generated sample showspayload, signature, and public_key as placeholder base64 strings. It never packs the binary payload, never generates a fresh UUIDv7, and never runs the per-curve signature. Copy it as-is and the exchange rejects it. Treat those samples as request-shape documentation, not runnable code.
| Endpoint kind | Auth | Generated sample |
|---|---|---|
| Reads | X-API-KEY or X-DEVICE-KEY header | Runnable — paste your key and send |
| Signed writes | Client-side signature over a binary payload | Documentation-only — the opaque base64 fields are placeholders |