Skip to main content

How to Create and Update API Keys - ByBit Spot & Futures

Create your API Keys on ByBit, connect them with your Cornix account, and update IP Whitelisting

Written by Dor

Before you start, we highly recommend using the ⚡ByBit Quick Connect⚡ feature for a fast, easy, and seamless process! It will automatically create API keys with the needed permissions, Whitelisted IPs, and add them to your Cornix account. Note that the ByBit Quick Connect feature supports standard and unified trading accounts, but connecting ByBit sub-accounts will still require manual API key creation.


Creating ByBit API - Step by Step

Navigate to your Cornix Dashboard > Accounts > '+ Create'

Choose 'ByBit' and then 'Connect with API Keys'. Here you will see fields to insert your API keys and Whitelisted IPs to copy.

Note that by default, all sub-exchange types are checked (ByBit Spot, ByBit USDT, and ByBit Inverse). Uncheck the ones that you do not want to connect.

You will also see the brief instructions on your left.

Now, navigate to your ByBit account to manually create API keys:

Step 1 - Enter the API section

Click on your avatar icon in the top right corner to get to the API Management section.

Step 2 - Click the Create New Key button

Under the API management, click 'Create New Key' and choose 'System-generated API Keys'.

Step 3 - Select Cornix as Third-Party Application

Choose the 'Connect to Third-Party Applications' option and use the dropdown to select 'Cornix'.

It will automatically attach Cornix Whitelisted IPs to the keys, ensuring that only Cornix can access your API, and extending its expiration date.


Step 4 - Set the API Permissions

The API permissions setup differs depending on which ByBit account you are using: Standard account or Unified Trading Account.

Standart Account

Proceed to set up the API connection permissions under the 'API Key permissions' section. Make sure that the API permissions include:

  • Enable the 'Read-Write' option

  • Under 'Contract' enable 'Orders' and 'Positions'

  • Under 'Spot' enable 'Trade'

  • Click 'Submit'

Unified Trading Account

Connecting a ByBit UTA (Unified Trading Account) will require additional permissions as detailed here:

  • Enable the 'Read-Write' option

  • Under 'Contract' enable 'Orders' and 'Positions'

  • Under 'USDC Contracts' enable 'USDC Derivatives Trading'

  • Under 'Spot' enable 'Trade'

  • Click 'Submit'


Step 5 - Security Verification

You will be requested to pass a Security Verification:

Step 6 - Add your API Key Information in Cornix

Once verified, API keys will be displayed on your screen.

Now you can copy and paste them to Cornix Dashboard > Accounts > 'Create' > 'ByBit' > 'Connect with API Keys':

Click 'Connect to ByBit' and your API will be successfully added to your Cornix account!

After making sure everything is set properly, click the "Understood" button.

Updating ByBit API - Step by Step

When editing your ByBit connection (account) on the Cornix side, you are able to replace its API keys without losing the connection with Cornix (and saving all its trades data).

Once you have your new API keys, follow these steps to replace the current ones:

  1. Navigate to your Cornix Dashboard > Accounts > and click on one of your accounts to see the account's info.

  2. Click the three-dot button in the top right corner > 'Edit' > and here you can paste the new keys.

  3. Click 'Update' to save the changes

Did this answer your question?