EGeneral:Permission denied errors. Granting too many exposes you to unnecessary risk if the key is compromised.
Permissions by use case
Permission descriptions
Security best practices
Use IP whitelisting. Lock your API key to the IP addresses your trading system runs from. This single measure prevents almost all key misuse even if the key is leaked. Use separate keys per purpose. Give your market data service a read-only key. Give your order management system a trading key. Give your accounting system a ledger query key. If one is compromised, the blast radius is contained. Never embed keys in source code. Use environment variables or a secrets manager. Rotate keys periodically. Set the minimum permissions required. A key used only for placing orders does not needWithdraw Funds.
WebSocket authentication
WebSocket private channels (executions, balances, open orders) require a short-lived token rather than your API key directly. Obtain it via the REST endpoint before opening your WebSocket connection:Related guides
Authentication
HMAC-SHA512 signature generation and nonce management
Sub-accounts
Issue independent API keys per sub-account for strategy isolation
WebSocket authentication
How to use your WebSocket token in subscription messages