Tutorial to Create API Key on Bybit
Step 1: Log in to your Bybit account
Go to the Bybit website and log in to your account. Complete any additional verification, such as two-factor authentication (2FA) with Google Authenticator or SMS, if you have it enabled on your account.Step 2: Access API Settings
Once you're logged into your account, click on your profile (user icon) in the top right corner. From the drop-down menu, select "API" to open the API management page.Step 3: Create a New API Key
- On the API page, click “Create New API Key.”
- Select if you want the key to be for “Third Party Use” either “Own use”.
- Use of third parties: If you are connecting an external application, such as a trading bot.
- Own use: For personal integrations and automations.
- Enter a name for the API (for example, “Trading Bot”) that allows you to identify it.
Step 4: Configure API Permissions
- Read-Only Permission: Check this option if you only want the API to be able to view your account information, without executing any transactions.
- Trading Permit: Check this option if you want the bot or app to be able to operate on your account.
- Withdrawal Permit: Enabling this option for a basic trading API is not recommended as it poses security risks.
Step 5: Configure IP Restrictions (Optional but Recommended)
For added security, Bybit allows you to limit API usage to a specific IP address.- If you have a fixed IP address on the device or server where you'll be using the API, enter it in the IP Whitelist field.
- This option will ensure that the API can only be accessed from that IP, protecting your account from unauthorized access.
Step 6: Complete the Security Check
Bybit will ask you to complete a security verification to confirm the creation of the API key:- 2FA Verification Code: Enter the Google Authenticator code or the 2FA method you have activated in your account.
Step 7: Save the API Key and API Secret
- After verification, Bybit will generate your API Key and API Secret.
- Keep this information in a safe place; the API secret is only displayed once, so it's important to store it in a password manager or write it down somewhere safe.
Step 8: Connect the API to your Trading Bot or Third-Party App
- Use the API Key, API Secret, and any other configuration information (such as the Security Phrase) that your bot or app requires.
- Follow the app or bot's specific instructions to set up a secure connection and verify that the permissions and settings are correct.
Step 9: Check API Status and Test (Optional)
- After connecting the API, make sure it is working properly.
- Test with small orders to confirm that your API settings are appropriate before operating regularly.
Additional Safety Tips
- Don't share the API with third parties and use it only in trusted applications.
- Disable the API if you won't be using it for a while to reduce risk.
- Review API permissions regularly to ensure they haven't changed.