Gleec¶
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 Gleec account, click on the settings icon on the top right of the Gleec main page and then Select API Keys fromthe menu.
Once inside, click the New API Key button as indicated below.
The screenshots below will show you how the settings should look like before you click on I Understand.

Add a name for the API and check the checkboxes as indicated below.

Now Click the IP Whitelist edit button.

Input the IP addresses before clicking Add followed by Save:
- If you are running an Enterprise license, use the IP address of your machine/server
- If you are trading on HaasOnline Cloud, enter the IP address shown in the HaasOnline UI during exchange account setup

Complete the Authentication process.

Adding the API to HaasOnline TradeServer¶
Log in to TradeServer.
Click on the user menu icon in the top right and select Exchange Accounts

- Click on the add icon (+ button).
- Select
Exchange Account.

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

Info
Repeat the steps to add the API for Leverage if you first chose Spot.
Enter the Account name.
From the Gleec API Management page earlier, click on Copy under API Key and paste it in the TradeServer window under Public Key. Repeat the same for API Secret but paste it under Private Key.

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.