If you're receiving Error 401, it means there's an issue with your authorisation. To fix this, try these steps:
- Double-check your API key and secret: Make sure they are correct.
- Confirm your connection: Verify that you're using the right website address (e.g., bitmex.com, not testnet.bitmex.com).
- Match your data: Make sure the data you're sending is exactly what you're signing.
- Complete verification: Ensure your account is fully verified at https://www.bitmex.com/get-started
For complete instructions on API key setup and usage, see our API Keys Usage documentation.