Skip to content

Phemex

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

Phemex cryptocurrency trading platform header with menu options including Buy Crypto, Markets, Contract, Spot, Earn, Web3, Learn, Promotions, and Merry CryptoMas.

Once inside, click the Createnew API key button as indicated below.

HaasOnline API Management page with IP Address field, Create new API key button, and error message.

Now select the API type as shown below and click Next

![Create new API key dialog on HaasOnline platform, offering High rate limit or Default API entry options.](/assets/image-811.png)

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

Danger

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

![Default API entry form with HaasOnline, IP Address Bind IP, and Read & Trade Permission UI elements.](/assets/image-812.png)

Complete the Safety Verification

![Google Authenticator code entry dialog for safety verification on HaasOnline trading platform.](/assets/image-31.png)

Once you click on Add the API keys will be displayed and can be added to TradeServer. It should look like this:

![Cryptocurrency trading platform interface showing API credentials and security warning note](/assets/image-32.png)

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

Adding the API to HaasOnline TradeServer

Log in to TradeServer.

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

Cryptocurrency exchange selection panel with Phemex exchange option highlighted

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.

![HaasOnline Select Exchange Type dialog with Spot and Leverage Phemex options displayed.](/assets/image-36.png)

Enter the Account name.

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

![Successful Phemex exchange account setup with API secret and IP whitelist details displayed in exchange dashboard.](/assets/image-37.png)

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.