Skip to content

Bitget

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 Bitget account, click on the profile icon on the top right of the Bitget main page and then Select API keys from the menu.

Bitget cryptocurrency trading platform user interface with primary navigation and action buttons.

Once inside, click on API Keys menuthen click on Create Api Key.

Cryptocurrency trading platform API management interface with

Once the pop-up appears, make sure you:

Select API Key type - System-generated API Key

<img src="/assets/image-791.png" alt="HaasOnline API key selection dialog with "System-generated API key" and "User-generated API key" options" data-size="original"

Add a name for the API key in the Note field

<img src="/assets/image-793.png" alt="UI dialog for creating a new API key on HaasOnline cryptocurrency trading platform" width="341"

Add a Passphrase (API Token)

API key creation dialog with passphrase note and 8-32 alphanumeric character input field.

The screenshots below will show you how the settings should look like before you click on Next.

Warning

Make sure to NOT select Read-Only

HaasOnline API key creation dialog with read-write and futures order and holdings permissions selected.

UI to create new API key in HaasOnline platform, with
HaasOnline API key creation dialog with Taxation and Query permissions options and IP address binding field.

Once you click on Next then complete the security verification and the API key is now ready to be added to TradeServer Cloud. It should look like this:

Danger

If you are running an Enterprise license, please use the IP address of your machine/server instead of the ones written in the platform.

Cryptocurrency trading platform API management interface showing access key, secret key, and bind IP addresses.

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 Bitget.

Cryptocurrency exchange selection screen in HaasOnline platform, highlighting Bitget exchange.

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 trading platform UI showing Select Exchange Type options: Spot, Bitget, Bitget COIN Futures, Bitget USDT Futures.

Enter the Account name.

From the Bitget 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. Add your passphrase

Bitget account setup dialog with API key, secret key, and IP address configuration 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.