/user WebSocket namespace require a trading API key, secret and passphrase.
Credentials
Configure your bot with:REST HMAC Headers
Every authenticated REST request must include:
The signature message is:
methodis uppercase, such asGET,POSTorDELETE.pathincludes/api/v1and excludes the scheme, host and query string.bodyis the exact JSON string sent on the request, or an empty string for requests without a body.- Timestamps must be within 30 seconds of server time.
REST Signing Examples
- TypeScript
- Python
- Rust
WebSocket Auth
The/user Socket.IO namespace authenticates after connect with a user-connect message.
The WebSocket signature message is different from REST:
user-authenticated with { "success": true } or { "success": false, "error": "..." }.
Security Notes
- Keep API secrets out of source control and client-side browser code.
- Use separate keys for separate bots or services.
- Deactivate unused or compromised keys immediately.
- Keep host clocks synchronized; requests outside the timestamp window are rejected.