Restrict your API key to the Winrate IP
45.159.172.223Gate connects with an APIv4 key and a secret key.
Winrate shows your Gate spot balance. Futures and other accounts are not counted.
Use a Classic (non-unified) account. Winrate doesn't support unified trading accounts yet.
Before you start
Gate asks you to have these ready:
- Account verification (KYC).
- A fund password.
- 2FA.
Use the Gate website on a computer.
Create the key
Menu names on Gate can change. If your screen looks different, pick the closest option.
- Log in to Gate. Hover over the profile icon at the top of the page and click API Management.
- Click Create API Key.
- Enter API Key Remarks, for example "Winrate".
- IP whitelist: enable IP restriction (trusted IPs) for the key and add the Winrate IP: 45.159.172.223.
- This is optional on Gate, but a key without IP binding is valid for only 90 days.
- API Key type: choose API v4 Key. (API v2 keys are older; don't use them.)
- Account type: choose Classic Account (non-unified). Winrate doesn't support unified trading accounts yet.
- Permissions:
- Read Only to track your balance.
- Read and Write for spot trading if you want to buy and sell from Winrate. Trading in Winrate needs Premium.
- Keep Withdraw off.
- Gate lets you pick currency pairs. Don't limit them, or orders for other pairs will fail.
- Click Submit.
- Read the Risk Reminder and click I accept.
- Enter your fund password and 2FA code, then Confirm.
- Copy the API key and Secret.
Good to know: a Gate key without IP binding works from any address but is valid for only 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 Gate.
- Under Connection details, fill in Connection name, API key, Secret key. The connection name is just for you, for example "Gate 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 Gate.
- 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" | Copy the key and secret again, with no spaces. Make sure it is an API v4 key. |
| Connection stopped after about 3 months | Keys without IP binding last 90 days. Create a new key and bind the Winrate IP 45.159.172.223. |
| Orders fail for some coins | The key may be limited to certain currency pairs. Allow all pairs. |
| Can't create a key | Check account verification, fund password and 2FA. |
FAQ
Can I use a Gate unified account?
Not yet. Choose Classic Account (non-unified). Winrate doesn't support unified trading accounts yet.
API v2 or API v4 — which should I choose?
API v4. API v2 keys are older and limited.
Which Gate permissions does Winrate need?
Read Only to track your balance. Read and Write for spot if you want to buy and sell from Winrate. Never withdrawals.
Why did my Gate key stop working?
Keys without IP binding are valid for 90 days. Create a new key and bind the Winrate IP 45.159.172.223 to it.
Why does Gate ask for a fund password?
Gate asks for it to confirm a new API key. Winrate never needs your fund password.
Can I connect a Gate subaccount?
Yes. Create the key in that subaccount and add it as a separate connection.