Connecting to Gate
To connect Gate to JetScalp, create an API key (API v4 Key) in your Gate account and enter it in the connection settings.
Gate issues a key pair:
- API Key — the API key identifier.
- Secret Key — the secret key used to sign requests.
1.Open API key management
Log in to Gate and open Profile → API Management, or go straight to the API management page .
Before you can create a key, Gate requires account verification and a configured Fund Password and 2FA.
2.Create an API key
Click Create API Key and select API v4 Key.
Do not choose API v2 Key if you plan to trade futures: API v2 works only with Spot, while API v4 supports Spot, Margin and Contract/Futures.
Enter a name for the key, for example JetScalp. The name is only for you — to tell keys apart.
If Gate asks for an account type (Classic Account, Margin Trading, Testnet), choose the real account you trade on.
3.Configure permissions
Gate API v4 sets rights separately for each group — Spot/Margin, Perpetual Contract, Delivery Contract, Wallet, Options and others — as Read-only or Read-write. Enable only what you need:
- Spot → Read and Write — for Spot trading
- Perpetual Contract → Read and Write — for futures trading
- Wallet → Read and Write
- Withdraw
Important: JetScalp does not need the withdrawal permission (Withdrawal) — do not enable it.
4.Restrict access by IP
Turn on the IP Whitelist and enter the public IP address JetScalp connects to Gate from, for example 123.123.123.123. An API v4 key can have up to 20 IP addresses. If JetScalp works through a proxy, enter the IP address Gate sees when you connect through that proxy.
Without an IP binding the key works from any IP address. For new API v2 keys without a binding, Gate limits validity to 90 days; for API v4 an IP Whitelist is recommended as well.
If you do not know which IP to enter, find it out first: with a wrong IP, Gate rejects the connection.
5.Confirm creation and save the key
Click Submit and pass the security check: accept the security warning, enter your Fund Password and the 2FA code. Gate shows the API Key and Secret Key. Copy both keys right away.
6.Check the position mode (for futures)
JetScalp supports a Gate futures account only in One-way position mode (single in the Gate API).
If Hedge mode (dual mode in the Gate API) is enabled on the account, the Futures section does not connect and JetScalp shows this message:
Gate Futures: the account is in hedge mode (dual mode). JetScalp supports only single mode — switch the position mode in the Gate settings. Connection aborted.To switch the mode, on the Gate futures trading page open Settings → Trading → Position Mode and select One-way. Gate requires you to close open positions and cancel active orders first (Gate help ).
The position mode is a setting of your Gate account; JetScalp does not change it.
7.Add the connection in JetScalp
Open Settings → Connections, click Add connection below the connection list and click the tile Gate. The connection appears in the list, and its settings appear on the right.
Fill in the connection settings:
| Field | Value |
|---|---|
| Name | The connection name in the list. By default it is the exchange or broker name; you can change it. |
| API Key | The API Key from Gate. |
| Secret Key | The Secret Key from Gate. |
| Proxy | A proxy from the list or None. See Proxy settings. |
Gate has two markets, so the connection settings have two sections — Spot and Futures, each with its own switch and state. Turn off the section of a market you do not trade: JetScalp will not connect to it, and the section's fields are kept.
8.Turn on the connection and check
Turn the connection on with the switch on the right of its row in the list. The state appears under the connection name: first connecting…, then connected. If the connection fails, the error text appears there — the full text is shown in the tooltip and in the header of the connection settings. For all states, see Connections.
Check that:
- Gate is connected.
- The account balance is shown.
- Open positions are shown.
- Orders are placed and canceled.
If the connection does not work
Invalid API Key or Secret Key
Check that both keys are copied completely and without extra spaces.
Insufficient permissions
If quotes work but orders are not placed, check the API v4 permissions: Spot → Read and Write for Spot and Perpetual Contract → Read and Write for futures.
Hedge mode is enabled
If JetScalp reports that the Gate Futures account is in dual mode, switch the position mode to One-way (see step 6).
IP restriction
If the key has an IP restriction, make sure the IP address of the computer or proxy is in the allowed list.
API v2 key used
Futures trading needs an API v4 Key — API v2 works only with Spot.
Key changed
Gate applies permission changes with a delay of up to 5 minutes — wait and connect again.
Security
Never share your API Key and Secret Key — not in chats or Telegram, not with support, not on forums, in screenshots or public repositories.
JetScalp does not need the withdrawal permission — do not enable it.
If the key may have reached anyone else, delete it in Gate right away and create a new one.