Skip to content

Bybit

Obtaining the API Key

Danger

WARNING: Do NOT use the same API key that you have created for other services.

To get the API keys for your ByBit account, click on the dropdown list on the top right of the ByBit main page. Select API.

Bybit cryptocurrency exchange homepage celebrating 10M users with 0 fees on all spot trading pairs and various trading options.

Once inside, click on API Management and then click on Create New Key.

Bybit API Management dashboard with key creation and security configuration details

Once the pop-up appears, make sure you:

  1. Select Connect to Third-Party Applications
  2. Select Haasbot Cloud under Application Name
  3. Select Contract - Orders, Contract - Positions, Derivatives API V3 - Trade, SPOT - Trade under API Key Permissions

Bybit platform's Create New API Key page with options to connect to third-party applications and select Haasbot Cloud integration.

Bybit API Management dashboard with Create New Key form displaying API Key Usage and Permissions settings

The screenshot below will show you how the settings should look like before you click on Submit.

Warning

Make sure to NOT select Read-Only

Bybit API Management dashboard with Create New Key form showing API Key Usage and API Key Permissions options.

Once you click on Submit, the API key is now ready to be added to TradeServer Cloud. It should look like this:

Bybit API Management dashboard with Create New Key form, showing API Key, API Secret, and Permissions details.

Keep the pop-up open and move on to the next step.

Adding the API to HaasOnline TradeServer Cloud

Log in to TradeServer Cloud.

Click on the <img src="/assets/image-481.png" alt="" data-size="line" icon and select Exchange Accounts

Cryptocurrency exchange accounts management interface with Exchange Accounts panel and Connect status indicator

  1. Click on the <img src="/assets/image-419.png" alt="" data-size="line" icon.
  2. Select Exchange Account.

HaasOnline exchange account management interface with 'Exchange Account' and 'Simulated Account' options.

From the list of exchanges that we support, click on Bybit.

HaasOnline cryptocurrency exchange accounts dashboard with a dropdown menu of available exchanges.

Select the trading type that you want to use the API with.

Info

Repeat the steps to add the API for Leverage if you first chose Spot.

Cryptocurrency exchange account management interface with exchange type selector dialog

Enter the Account name.

From the Bybit API Management page earlier, click on Copy under API Key and paste it in the TradeServer Cloud window under Public Key. Repeat the same for API Secret but paste it under Private Key.

HaasOnline API key creation dialog with name, API Key, API Secret, and Permission fields

Info

Though it might not be necessary, it might be best if you make sure to check for spaces at the start and at the end of the API/Private Key after you paste them.

Once that is done, the TEST KEYS button should be active for you to press. Click on it.

Should the test pass, you will be able to click on Submit to add the API key to the platform.