How to Connect Gate.io to ZeroLoss: API Key Setup
ZeroLoss trades Gate.io USDT perpetual futures on your own Gate.io account. It connects through an API key that you create on Gate.io, not through your password, and the key only needs permission to read your account and trade futures. Your money stays on Gate.io the whole time. This guide shows how to create that key, restrict it, and connect it to ZeroLoss. It takes about five minutes.
Want to see the bot trade before connecting anything? The free 7-day paper test needs no exchange at all.
Before you start
- A Gate.io account with account verification completed, a fund password set, and two-factor authentication turned on. Gate asks for all three when you create a key.
- At least 100 USDT in your USDT perpetual futures account. On the web: Assets → Futures Account → Transfer, choosing USDT as the margin currency. In the app: the Funds Transfer icon on the futures page. If your account uses Gate’s Unified Account mode, no transfer is needed.
- A ZeroLoss account. You can start with the free paper test and connect later.
Step 1: Create the API key on Gate.io
- Log in on the Gate.io website, hover over the profile icon at the top right and open API Management.
- Choose to create an API v4 Key. Do not use an API v2 key: it is spot-only.
- Choose the Classic Account type for live trading. Testnet keys only work on Gate’s test site.
- Give the key a name, set the permissions (Step 2) and IP whitelist (Step 3).
- Accept the risk reminder, enter your fund password and your 2FA code, and confirm.
- Copy the API Key and the Secret Key and keep them somewhere safe.
Step 2: Choose the permissions
Gate sets each permission group to disabled, read-only or read-write:
- Perpetual contract: read-write. This lets ZeroLoss read your futures account and place and cancel orders.
- Withdrawal: disabled.
- Wallet: disabled or read-only. Read-write on the wallet allows fund transfers, which ZeroLoss never needs.
- Spot/margin and delivery contracts can stay disabled.
Step 3: Restrict the key to ZeroLoss’s IP addresses
Restricting a key to a few IP addresses means it only works from those servers, even if someone copied it. In the ZeroLoss app, open Connect Exchange; the step Add our IPs lists ZeroLoss’s server addresses with a Copy all button. Paste them into the IP restriction field on Gate.io.
Gate accepts up to 20 IPv4 addresses per key (not ranges). This matters more than it looks: a Gate v4 key with no IP whitelist is disabled after 90 days, and any key unused for 90 days is deleted. Binding ZeroLoss’s addresses avoids the first problem.
Step 4: Connect the key in ZeroLoss
- Log in to ZeroLoss and open Connect Exchange.
- Under 1 · Pick your exchange, choose Gate.io.
- Under 2 · Paste your API key, paste your API key and secret key.
- Click Verify & connect. ZeroLoss checks the key and reads your futures balance. The connection needs at least 100 USDT in your Gate.io USDT futures account.
Check that the key is safe
Open the API management page on Gate.io and look at the key you created. It should allow reading and futures trading, with withdrawals off. To stop ZeroLoss at any time, delete the key on Gate.io; trading through it ends immediately, without any action from us. Our guide to trade-only API keys explains why this is the setting that matters.
Common problems
- The key stopped working after about three months: it had no IP whitelist and Gate disabled it after 90 days. Bind ZeroLoss’s IPs, or create a new key with them.
- Nothing works with a key you just made: check it is a v4 key on the Classic Account, not a v2 or Testnet key.
- “Invalid API Key or Secret”: a character was missed when copying. Copy both again; if the secret was not saved, delete the key and create a new one.
- “API key missing required permissions”: futures trading or reading is not ticked on the key. Edit the key, or create a new one with both.
- “API IP restriction issue”: the key is restricted, but not to all of ZeroLoss’s addresses. Use Copy all in the app and paste the full list again.
- “Minimum 100 USDT required in Futures wallet”: your USDT is in the spot account, or in the BTC-margined futures account. Transfer it to the USDT perpetual futures account and try again.
Crypto futures trading carries a high risk of loss, and automation does not remove it. Exchange screens change from time to time; if a menu looks different, the permission names above are what to look for. This page is general information, not financial advice. See our Risk & Liability Disclaimer.