How do I set up a Bybit API and fix connection errors?
If you are experiencing issues when connecting your API, verify the following configuration requirements:
Use the Correct API Environment
Ensure you are connecting to the Bybit Demo API, not the live environment, when trading a demo challenge.
API Permission Settings
The API key must be created with the following permissions:
- Read/Write access
- Unified account
- Assets enabled
- No IP restrictions selected
If IP restrictions are enabled, our system will not be able to establish the connection.
Copy API Keys Correctly
Always use the “Copy” button when transferring API credentials. Do not enter keys manually, as this may result in formatting errors.
Do Not Modify or Delete the API
Once connected, the API key must not be altered or removed. Any changes to permissions or credentials may break the connection.
Ensure No Active Orders
Before connecting the API:
- Close all open positions
- Cancel all limit or pending orders
Active trades may interfere with the connection process.
Avoid API Reuse Conflicts
Do not reuse an API key that was previously linked to another challenge. Each challenge should have a dedicated API key to prevent conflicts.
If all requirements above are met, the API connection should function correctly.
