Skip to content

HTX

HTX was called Huobi until September 2023. HaasOnline still uses HUOBI as the internal exchange code, so that is what you will see on existing accounts and in HaasScript — it refers to this exchange.

Obtaining the API

Warning

The API keys of HTX expire every 90 days. Make sure you create a new one before the time has expired.

You will first need to log in to the exchange and then click on API Management.

The HTX exchange homepage, offering digital asset trading services worldwide.

You will then be shown a page where can create your API key.

It is recommended that you enter some identification detail in the Notes section and click on Create.

HaasOnline API management interface with Create API Key button and API key details table

A security authentication pop-up will appear in the middle of the page with your email address that is registered to the exchange. Click on Send and check your email for the code.

API management page on the HTX cryptocurrency exchange with the "Security authentication" modal dialog for email verification.

Security authentication dialog with email verification code input field and Confirm button.

Once you have entered the code, click on Confirm.

A new pop-up will come up and you can now copy the Access Key and Secret Key into HaasOnline TradeServer in the Exchange Accounts page.

HTX API Management dashboard with the API key creation dialogue box displaying access and secret keys.