Restrict your API key to the Winrate IP
45.159.172.223HTX connects with an Access Key and a Secret Key. In Winrate, paste the Access Key into the API key field.
Winrate shows your HTX spot balance. Futures and other accounts are not counted.
Before you start
- Use the HTX website on a computer. HTX's API docs say to create keys on the website.
- Turn on 2FA. HTX may ask for SMS, email and Google Authenticator codes.
Create the key
Menu names on HTX can change. If your screen looks different, pick the closest option.
- Log in to HTX. Open your profile menu and choose API Management (htx.com/apikey).
- Click to create a new key.
- Enter a note (name), for example "Winrate".
- Permissions:
- Read to track your balance.
- Trade too, if you want to buy and sell from Winrate. Trading in Winrate needs Premium.
- Keep Withdraw off.
- IP binding: enable IP restriction (trusted IPs) for the key and add the Winrate IP: 45.159.172.223.
- This is optional on HTX, but a key without IP binding expires after 90 days.
- Confirm with your verification codes.
- Copy the Access Key and Secret Key. HTX shows the Secret Key only once.
Good to know: an HTX key without IP binding expires after 90 days. Bind the Winrate IP 45.159.172.223 to avoid this.
Add the key to Winrate
On the web
- Sign in at winrate.tech. In the sidebar, open Connections. You see Exchange connections.
- Click Add. The New exchange connection form opens.
- Under Choose an exchange, pick HTX.
- Under Connection details, fill in Connection name, API key, Secret key. The connection name is just for you, for example "HTX main".
- Click Add connection. Your balance appears within a few minutes.
In the iPhone app
- Open the Trade tab and tap Connect an exchange. If you already have a connection, open the exchange menu and tap Add connection.
- On Select exchange, pick HTX.
- On Connect exchange, fill in Connection name, API key, Secret.
- Tap Connect.
Your first connection is free. A second connection needs Winrate Premium. Buying and selling from Winrate also needs Premium.
Common errors
Many fixes below need a new key. Winrate can't swap the key on a connection: delete the old connection on the web (on its page) and add a new one. This removes that connection's order history, balances and charts. See Replace or rotate a key.
| What you see | What to do |
|---|---|
| "Invalid API key or secret" | Paste the Access Key into the API key field and the Secret Key into the secret field, with no spaces. |
| Connection stopped after about 3 months | Keys without IP binding expire after 90 days. Create a new key and bind the Winrate IP 45.159.172.223. |
| Balance shows, but orders fail | Turn on Trade permission for the key. |
| Lost the Secret Key | HTX shows it only once. Delete the key and create a new one. |
FAQ
What is the HTX Access Key?
It is HTX's name for the API key. Paste it into the API key field in Winrate.
Which HTX permissions does Winrate need?
Read to track your balance. Trade if you want to buy and sell from Winrate. Never Withdraw.
Why did my HTX key stop working?
Keys without IP binding expire after 90 days. Create a new key and bind the Winrate IP 45.159.172.223 to it.
Does one HTX key cover spot and futures?
HTX keys are shared across its products, but Winrate shows only your spot balance. Trading in Winrate is spot only too.
Can I connect more than one HTX account?
Yes. Each one keeps its own balance and history. Your first connection is free; a second one needs Premium.