SignalBee
Docs/Perpetual Exchange Guides

Gate.io Perpetual Futures Setup

Connect your Gate.io Futures account to SignalBee for automated perpetual contract trading. This guide walks you through enabling futures trading, creating API keys with the correct permissions, and configuring your account for automated signals.

Important: Gate.io requires only two values for API authentication: API Key and Secret Key. Unlike Bitget or OKX, there is NO passphrase required.


Prerequisites

Before you begin, make sure you have:

  • Verified Gate.io account - Identity verification (KYC) completed
  • 2FA enabled on Gate.io - Required for API key creation
  • Futures trading enabled - Must activate Futures on your Gate.io account
  • SignalBee account - Ready to connect an exchange
  • Password manager - For storing your TWO API credentials securely

Security Note: Gate.io requires 2FA (two-factor authentication) to create API keys. If you haven't enabled 2FA yet, go to Security SettingsTwo-Factor Authentication in your Gate.io account.


About Gate.io Futures

Gate.io is a major cryptocurrency derivatives exchange offering USDT-margined perpetual contracts:

FeatureDetails
Contract TypeUSDT-margined perpetual contracts
LeverageUp to 125x (varies by symbol)
Order TypesMarket, Limit, Stop-Loss, Take-Profit
Position ModesOne-way or Hedge (long + short simultaneously)
Margin TypesCross (shared) or Isolated (per position)
Funding RateEvery 8 hours
Maker Fee0.015%
Taker Fee0.05%
TestnetAvailable at fx-api-testnet.gateio.ws

Order Type Support

SignalBee supports most Gate.io Futures order types:

Order TypeSupportedGate.io APIDescription
Market✅ Yesprice=0, tif=iocImmediate execution at current price
Limit✅ YesStandard limitExecute at specified price or better
Stop-Loss✅ YesTrigger orderMarket order when mark price reaches trigger
Stop-Loss Limit✅ YesTrigger + limitLimit order when trigger price is reached
Take-Profit✅ YesTrigger orderMarket order when take-profit price is reached
Take-Profit Limit✅ YesTrigger + limitLimit order when take-profit price is reached
Trailing Stop❌ NoNot supported on Gate.io Perpetual

Note: Unlike Binance Futures, trailing stop orders are NOT supported on Gate.io Perpetual. If your strategy requires trailing stops, consider an alternative exchange or use manual stop adjustments.

Time in Force Options

OptionAPI ValueDescription
Good Till CanceledgtcOrder remains until filled or canceled (default)
Immediate or CanceliocFill immediately or cancel unfilled portion
Fill or KillfokFill entire order immediately or cancel completely
Post OnlypocOnly maker orders (adds liquidity, no taker fees)

Gate.io Authentication System

Gate.io uses a two-value authentication system, simpler than exchanges like Bitget or OKX.

What Are the Two Credentials?

CredentialWhat It IsCan View Later?
API KeyPublic identifier for your key✅ Yes - visible in API Management
Secret KeyPrivate key for signing requestsNo - shown only once

Both values are required for SignalBee to connect to your Gate.io Futures account.

No Passphrase Required

Unlike Bitget, KuCoin, or OKX, Gate.io does NOT use a passphrase. You only need to save two values:

ExchangeCredentials Required
Gate.ioAPI Key + Secret Key (2 values)
BinanceAPI Key + Secret Key (2 values)
BybitAPI Key + Secret Key (2 values)
BitgetAPI Key + Secret Key + Passphrase (3 values)

Warning: If you lose your Secret Key, you must delete the API key and create a new one. There is no way to recover the Secret Key.


Enabling Futures Trading on Gate.io

You must complete this section BEFORE creating your API key. If you create an API key without enabling Futures first, the key will not have Futures capabilities.

Activate Your Futures Account

  1. Go to www.gate.io
  2. Log in with your email/phone and password
  3. Complete 2FA verification
  4. Hover over Derivatives in the main navigation menu
  5. Select Perpetual Futures from the dropdown
  6. If prompted, click to activate your Futures account
  7. Read and accept the Futures trading agreement
  8. You may need to complete a quiz about futures trading risks

Transfer Funds to Futures Wallet

Gate.io uses separate wallets for Spot and Futures trading. Funds must be in your Futures wallet:

  1. Click Wallet in the top menu
  2. Select Transfer
  3. Choose Spot Account as the source
  4. Choose Futures Account as the destination
  5. Select USDT as the currency
  6. Enter the amount to transfer
  7. Click Confirm

Important: Your Spot wallet balance does NOT affect Futures trading. You must explicitly transfer funds to trade futures. This is different from exchanges like Bybit that use unified trading accounts.


Creating Your API Key

Follow these steps to create an API key with Futures permissions.

Step 1: Log In to Gate.io

  1. Go to www.gate.io
  2. Log in with your email/phone and password
  3. Complete 2FA verification (authenticator app)

Step 2: Navigate to API Management

  1. Click your profile icon in the top-right corner
  2. Select API Management from the dropdown menu
  3. You'll see a list of your existing API keys (if any)

Step 3: Create a New API Key

  1. Click the Create API Key button
  2. You may need to complete 2FA verification again

Step 4: Configure Your API Key

  1. API Key Label - Enter a descriptive label: SignalBee Futures

Tip: Use a clear label to identify this key's purpose. You can have multiple API keys for different applications.

Step 5: Set Permissions

Configure the permissions for your API key:

  1. ✅ Enable Read Only - View account info and positions
  2. ✅ Enable Futures Trade - Place futures orders
  3. ❌ Do NOT enable Withdraw - Never needed
  4. ❌ Do NOT enable Spot Trade - Not required (unless also using spot)

Critical: You must enable Futures Trade permission, NOT just Spot Trade. These are separate permissions.

Step 6: IP Whitelist (Optional)

  1. Leave empty for unrestricted access, OR
  2. Add specific IP addresses for enhanced security (see IP Whitelist Configuration)

Step 7: Complete Security Verification

  1. Authenticator Code - Enter the 6-digit 2FA code
  2. Email Verification - Click the link sent to your email (if required)
  3. Wait for verification to complete

Step 8: Save BOTH Values IMMEDIATELY

After verification, Gate.io displays your API credentials. You MUST save both:

ValueCan View Later?Action Required
API Key✅ YesCopy and save
Secret KeyNO - Never shown againCopy immediately!

Warning: The Secret Key is displayed only once. If you close the page without copying it, you'll need to delete this API key and create a new one.

Save both values in your password manager now before proceeding.


Configuring Permissions

Configure the correct permissions to balance functionality and security.

Required Permissions

PermissionEnable?Why
Read Only✅ YesAllows SignalBee to check your balances and positions
Futures TradeYes - REQUIREDAllows SignalBee to place and manage futures orders

Never Enable These Permissions

PermissionEnable?Why
WithdrawNEVERSignalBee never needs withdrawal access. Enabling this is a serious security risk.
Spot TradeOptionalOnly if also using SignalBee for spot trading

Critical: You MUST enable the Futures Trade permission. Without this, SignalBee cannot place futures orders even if your API key is valid. The Spot Trade permission is separate and won't work for futures.

How to Edit Permissions

  1. In API Management, find your SignalBee Futures API key
  2. Click the Edit button next to the key
  3. Modify the permission checkboxes as needed
  4. Click Confirm
  5. Complete 2FA verification

IP Whitelist Configuration

IP whitelisting restricts your API key to only work from specific IP addresses. This is optional but adds a strong security layer.

Why Use IP Whitelisting?

ScenarioWithout WhitelistWith Whitelist
SignalBee places trade✅ Works✅ Works
Attacker tries stolen key⚠️ Could work❌ Blocked

Even if your API key is somehow exposed, it won't work from unauthorized IP addresses.

SignalBee Server IP Addresses

Note: Contact support@signalbee.trade to request SignalBee's current production IP addresses for whitelisting. We maintain static IPs specifically for exchange API calls and will notify you before any infrastructure changes.

How to Configure IP Whitelisting

  1. When creating or editing your API key, find the IP Addresses section
  2. Enter each SignalBee IP address (one per line)
  3. Click Confirm
  4. Complete verification

If You Skip IP Whitelisting

If you choose not to use IP whitelisting:

  1. Leave the IP address field empty
  2. Understand this is less secure but still safe if withdrawals are disabled
  3. Your other security measures (no withdrawal permission) still protect your funds

Adding to SignalBee

Now connect your Gate.io Futures API key to SignalBee.

Step 1: Go to Exchanges Page

  1. Log in to your SignalBee account
  2. Navigate to Exchanges in the main menu

Step 2: Add New Exchange

  1. Click the Add Exchange button
  2. Select Gate.io Perpetual from the exchange list

Critical: Make sure you select Gate.io Perpetual, NOT "Gate.io". These are different exchange connections for different account types. Selecting the wrong one will cause connection failures.

Step 3: Enter Your Credentials

Gate.io Perpetual requires only two fields:

FieldValue
API KeyYour Gate.io API key
Secret KeyYour Gate.io Secret key

Note: Unlike Bitget or OKX, Gate.io does NOT require a passphrase. You only need to enter two values.

Step 4: Test the Connection

  1. Click Save and Test Connection
  2. Wait for SignalBee to verify your credentials
  3. Look for the success message

Step 5: Verify Your Setup

After successful connection:

  1. Your Gate.io Futures balances should appear in SignalBee
  2. Check that your USDT balance matches your Futures wallet
  3. If you see your Spot balance instead, you may have selected the wrong exchange type

Tip: If balances don't appear or show $0, verify that:

  • You selected "Gate.io Perpetual" (not "Gate.io")
  • Your API key has the Futures Trade permission enabled
  • You have transferred funds to your Futures wallet

Gate.io Futures-Specific Considerations

Ticker Format

Gate.io Futures uses underscore-separated ticker symbols:

SignalBee FormatGate.io Format
BTC-USDTBTC_USDT
ETH-USDTETH_USDT
SOL-USDTSOL_USDT

SignalBee automatically converts between formats—when configuring webhooks, use standard formats like BTC-USDT and SignalBee will handle the conversion to BTC_USDT.

Note: Gate.io uses underscores (_) unlike most exchanges that use no separator (Binance: BTCUSDT) or special suffixes (Bitget: BTCUSDT_UMCBL).

Contract Types

TypeDescriptionSignalBee Support
USDT-MUSDT-settled perpetual contracts✅ Primary support
BTC-MBTC-settled perpetual contracts❌ Not implemented

SignalBee supports USDT-margined perpetual contracts only.

Account Structure

Gate.io uses separate wallets (unlike Bybit's Unified Trading Account):

WalletPurpose
Spot AccountFor spot trading
Futures AccountFor perpetual futures trading
Options AccountFor options trading

You must transfer funds from Spot to Futures before trading. Your Spot balance is not accessible for futures orders.

Minimum Order Sizes

Gate.io Futures enforces minimum order values:

CategoryTypical Minimum
Major pairs (BTC, ETH)~$5 USD equivalent
Altcoin pairs~$5-10 USD equivalent

Tip: Check Gate.io's contract specifications for current minimums.

Trading Fees

Fee TypeStandard RateWith GT Discount
Maker0.015%Lower with GT holdings
Taker0.05%Lower with GT holdings

Tip: Hold GT (Gate Token) in your account and enable "Use GT for fees" to receive fee discounts. Gate.io offers competitive maker fees compared to other exchanges.

API Rate Limits

  • Gate.io imposes rate limits on API requests
  • SignalBee handles rate limiting automatically
  • If you see rate limit errors, reduce your signal frequency

Testnet for Practice

Gate.io provides a Futures testnet for practice:

  • Testnet URL: fx-api-testnet.gateio.ws
  • Create separate testnet API keys
  • Practice trading without risking real funds
  • Test your signal configurations before going live

Position Mode Configuration

Gate.io Futures supports two position modes. Choose based on your trading strategy.

One-way Mode (Default)

AspectDescription
API Valuedual_mode: false
BehaviorSingle position per symbol
Long + ShortNot simultaneous (close long to open short)
Best ForSimple directional trading

Hedge Mode

AspectDescription
API Valuedual_mode: true
BehaviorSeparate long and short positions
Long + ShortCan hold both simultaneously
Best ForAdvanced strategies, hedging

How to Change Position Mode

  1. Go to Gate.io Futures trading page
  2. Click the Settings icon (gear)
  3. Select Position Mode
  4. Choose One-way Mode or Hedge Mode
  5. Confirm the change

Important: You cannot change position mode while you have open positions or pending orders. Close all positions and cancel all orders first.


Leverage and Margin Configuration

Setting Leverage

Leverage is configured per trading pair on Gate.io:

  1. Open the trading page for your desired pair (e.g., BTC_USDT)
  2. Click the leverage display (e.g., "20x")
  3. Use the slider to select your desired leverage (1x to 125x)
  4. Click Confirm
Symbol CategoryTypical Max Leverage
BTC, ETHUp to 125x
Major AltcoinsUp to 75x
Smaller AltcoinsUp to 50x

Recommendation: Start with 5x leverage or less until you're comfortable with futures trading. Higher leverage means faster liquidation.

Margin Types

TypeDescriptionBest For
IsolatedOnly allocated margin at riskLimiting losses per trade
CrossEntire Futures wallet as marginAvoiding liquidation, larger accounts

How to Switch Margin Type

  1. On the trading page, find the margin mode indicator
  2. Click to switch between Cross and Isolated
  3. For Isolated, you can set the margin amount per position

Tip: Isolated margin limits your maximum loss to the margin allocated to that position. Cross margin uses your entire Futures balance.

Understanding Liquidation

When your position losses exceed your margin:

  • Your position is automatically closed (liquidated)
  • You lose the margin allocated to that position
  • With cross margin, liquidation uses more of your wallet balance

Liquidation price is shown on each open position. Always know your liquidation price before entering a trade.


Troubleshooting

Common Gate.io Futures-specific errors and solutions:

ErrorLabelLikely CauseSolution
Invalid API KeyINVALID_KEYTypo or deleted keyRe-copy API key carefully. Check key exists in Gate.io.
Invalid SignatureINVALID_SIGNATUREWrong Secret KeyRe-copy Secret Key. Gate.io uses HMAC-SHA512.
Permission DeniedAPI missing Futures permissionEnable Futures Trade permission in Gate.io API settings.
Insufficient BalanceBALANCE_NOT_ENOUGHNot enough funds in Futures walletTransfer funds from Spot to Futures wallet.
Insufficient MarginINSUFFICIENT_MARGINNot enough margin for positionAdd margin or reduce position size.
Invalid ContractINVALID_CONTRACTWrong symbol formatUse underscore format: BTC_USDT, not BTCUSDT.
Order Not FoundORDER_NOT_FOUNDOrder already filled or canceledOrder may have been processed already. Check order history.
Order Already FilledORDER_ALREADY_FILLEDOrder completedCheck order history for fill details.
Order Size Too SmallORDER_SIZE_TOO_SMALLOrder value below minimumIncrease order size (quantity × price) to meet minimum.
Quantity Too SmallSIZE_TOO_SMALLOrder quantity below minimumIncrease order quantity.
Price Too LowPRICE_TOO_LOWLimit price unrealisticIncrease limit price closer to market.
Price Too HighPRICE_TOO_HIGHLimit price unrealisticReduce limit price closer to market.
Hedge Mode Not SupportedHEDGE_MODE_NOT_SUPPORTEDSymbol doesn't supportUse one-way mode for this symbol.
Position Mode Change FailedPOSITION_MODE_CANNOT_CHANGEOpen positions existClose all positions and cancel orders first.
Margin Mode Change FailedMARGIN_MODE_CANNOT_CHANGEOpen positions existClose all positions first.
Rate LimitRATE_LIMIT_EXCEEDEDToo many requestsWait and retry. Reduce signal frequency.
Too Many OrdersTOO_MANY_ORDERSToo many pending ordersCancel some pending orders.

Connection Test Fails?

If your connection test fails in SignalBee:

  1. Verify exchange selection - Must be "Gate.io Perpetual", not "Gate.io"
  2. Double-check both keys - Copy-paste errors are the most common issue
  3. Verify Futures permission - Must have Futures Trade enabled (not just Spot Trade)
  4. Check Futures is enabled - You must have activated Futures on Gate.io
  5. Wait a few minutes - New API keys may take 1-2 minutes to activate
  6. Check IP whitelist - If configured, ensure SignalBee's IPs are included

Funds Show as $0?

If SignalBee shows $0 balance:

  1. Verify exchange type - "Gate.io Perpetual" shows Futures wallet, "Gate.io" shows Spot wallet
  2. Transfer funds - Funds must be in Futures wallet, not Spot
  3. Check Reading permission - API key needs Read Only permission enabled

For persistent issues, see our Error Codes Reference or contact support@signalbee.trade.


Risk Warnings

CRITICAL: Perpetual futures trading carries significant risk. Read this section carefully.

Leverage Amplifies Both Gains AND Losses

Leverage10% Price Move Against You
1x10% loss
5x50% loss
10x100% loss (liquidated)
20xLiquidated at 5% move

Higher leverage = faster liquidation. A 1% adverse price movement with 100x leverage results in complete loss.

Liquidation is Automatic and Final

  • When margin is depleted, your position is forcibly closed
  • You lose the entire margin allocated to that position
  • There is no way to recover from liquidation
  • Liquidation fees apply on top of losses

Funding Rates Affect Position Costs

  • Perpetual contracts have funding payments every 8 hours
  • If you're long and funding is positive, you pay shorts
  • If you're short and funding is positive, you receive payment
  • Funding can significantly affect profitability of longer-term positions

Risk Management Best Practices

  • Start with low leverage (5x or less) until experienced
  • Always use stop-losses to limit potential losses
  • Never trade with funds you can't afford to lose
  • Size positions appropriately - don't risk entire account
  • Understand your liquidation price before entering trades
  • Monitor funding rates for held positions
  • Practice on testnet first before trading real funds
  • Consider isolated margin to limit maximum loss per trade

Not Suitable For

Futures trading may not be appropriate if you:

  • Are new to cryptocurrency trading
  • Cannot afford to lose your entire investment
  • Don't understand leverage and liquidation mechanics
  • Are unable to monitor positions regularly
  • Have high risk aversion

Security Best Practices

Follow this checklist to keep your Gate.io account secure:

Gate.io Account Security

  • Enable 2FA with an authenticator app (Google Authenticator, Authy) - more secure than SMS
  • Use a unique, strong login password for Gate.io (not reused from other sites)
  • Enable anti-phishing code on Gate.io - helps identify legitimate emails

API Key Security

  • Create a dedicated API key just for SignalBee Futures - don't reuse keys
  • Never enable withdrawal permission - SignalBee never needs it
  • Consider IP whitelisting for maximum security
  • Never share your Secret Key via email, chat, or screenshots
  • Store BOTH credentials in a password manager (1Password, Bitwarden, etc.)
  • Use separate API keys for Spot and Futures if using both

Ongoing Security

  • Review your API keys periodically in Gate.io - delete any you don't recognize
  • Rotate API keys every 90 days as a security habit
  • Monitor trade and position history for any unauthorized activity
  • Keep your email secure - it's used for Gate.io account recovery

Security Note: Even with all precautions, the most important protection is never enabling withdrawal permissions. Without this permission, your funds cannot be moved off the exchange even if everything else is compromised.