Skip to content

API key permissions, IP whitelist and the unified trading account ​

The key you give to the bot defines what the bot can do on your account. The rule is simple: permission to trade on the market you need — yes, permission to withdraw funds — never.

Which permissions the key needs ​

Bot typeKey permission
Bybit SpotSpot Trading (or Order + Position)
Bybit FuturesDerivatives / Contract Trading (or Order + Position) — orders and positions
BingX SpotRead and Spot Trading
BingX FuturesRead and Perpetual Futures Trading

When you create a key on the Bybit website, both permissions are turned on by a single Unified Trading checkbox — step by step in How to create a Bybit API key manually. For BingX — in How to create an API key on BingX.

The bot does not need withdrawal and transfer permissions: it only places and cancels orders. Do not grant them — you lose no features that way, and the key becomes safer.

The bot does not accept a key with the Withdraw permission enabled and asks you to send another one: if such a key ever leaked, it could be used to withdraw money from your account. Remove this permission in the key settings on the exchange (on Bybit — the Wallet group, on BingX — the Withdraw permission) — you can keep the key itself — or create a new key without it, and send the key again. In the same way the bot does not accept a Bybit key with P2P trading permissions (the P2P / FiatP2P group): via P2P a leaked key could move coins out of the account even without the withdrawal permission. The bot does not check transfers between your own accounts (on Bybit — Account Transfer, on BingX — Universal Transfer), but it does not need them either.

A copy-trading master account key does not fit (on BingX — a lead trader account): the bot rejects it, because all bot orders would be copied automatically to your followers. Use a regular account or a subaccount.

The permissions are checked when you send the keys to the bot: when you connect an account, when you replace the keys and when you log in with Bybit. If the permissions are revoked on the exchange later, trades stop opening and the bot sends a notification with the reason.

A key obtained with the “Log in with Bybit” button ​

If you connected the account with the 🔐 Log in with Bybit button, the key is created by Bybit itself for the SyncTrade application, and its permissions are set in advance: spot trading, futures orders and positions, without withdrawals and transfers. There is nothing to configure; the bot checks such a key the same way as one entered manually. The bot does not show the IP whitelist warning for it. If you need a key restricted by IP, create it on Bybit manually and send it to the bot as text. Details — Log in with Bybit.

IP whitelist ​

On the exchange (both on Bybit and on BingX) a key can be restricted to a list of IP addresses it works from. If a key entered manually has no such restriction, the bot warns you once when the keys are saved:

⚠️ API key without IP whitelist Your API key works from any IP, which increases the risk if the key is compromised. We recommend adding to your exchange key settings IP whitelist — only our server IP: [the address the bot shows] This is not mandatory, the bot works without IP whitelist. But IP whitelist adds an extra security layer.

⏳ Without IP binding the exchange will disable this key on [date and time] — the bot will remind you in advance.

The last line appears if the exchange reports the key lifetime (on Bybit — for a key without IP binding).

The whitelist is an extra layer of protection: even if the key leaks, it will not work from someone else's address. It is configured on the exchange in the key parameters; nothing has to be changed in the bot.

Key lifetime without a whitelist on BingX. BingX deletes a key without IP binding after 14 days without use; a key bound to an IP does not expire. Details — BingX specifics.

Key lifetime without a whitelist on Bybit. Bybit disables a key without IP binding 90 days after it is created; a key bound to an IP and a key received with 🔐 Log in with Bybit do not expire. Twice a day the bot checks key lifetimes and reminds you in advance — when 7, 3 and 1 full days are left:

⏳ API key will stop working soon Account «MY_FUTURES» (Bybit): the exchange will disable the API key in 3 d. — 25.10.2026 12:30 (UTC+3). After that the bots of this account will stop trading. Replace the key in advance: bot card → «🔑 API keys» (on the website — «Accounts» → «Change keys»). Bybit disables a key without IP binding 90 days after it is created. To keep the new key from expiring, bind it to the SyncTrade server IP address: [address]

Under the reminder there is the 👛 Open account button: the account page has “Change keys”. How to replace the key — Updating API keys.

Bybit unified trading account (UTA) ​

Bybit works in unified trading account mode. What matters here for the bot (BingX is different: the margin mode is set per pair, and money for trading has to be transferred from the Fund account to the futures account — see BingX specifics):

  • The margin mode is set for the whole account, not for a single pair. If the bot could not switch CROSS/ISOLATED, the trade opens in the account's current mode, and the mode you need has to be set by hand: Bybit → Account settings → Margin mode. See Margin type.
  • Collateral. If a coin is not included in the collateral, the exchange rejects the order — enable it in the collateral settings of the unified account.
  • Verification. For some operations the exchange requires KYC Level 2; without it orders are rejected.
  • Trading terms. The exchange may ask you to confirm a market that is new for you by hand — open it in the Bybit app and accept the terms.
  • Protections count the whole account. For example, the margin overload protection of a Grid bot in cross margin looks at the margin of the whole account, so a loss of other positions on the same account can stop the bot. For bots it is convenient to open a separate subaccount.

Limits and allowed values ​

ParameterValueNote
Permission for spot (Bybit)Spot TradingOr Order + Position
Permission for futures (Bybit)Derivatives / Contract TradingOr Order + Position
Permissions for futures (BingX)Read and Perpetual Futures TradingDo not tick Withdraw and Universal Transfer
Permissions for spot (BingX)Read and Spot TradingDo not tick Withdraw and Universal Transfer
Withdrawal permission (Withdraw)Not acceptedThe bot rejects a key with it
P2P trading permissions (Bybit)Not acceptedThe bot rejects a key with them
Copy-trading key (master, lead trader)Not acceptedRegular account or subaccount only
IP whitelistRecommended, not mandatoryThe bot shows the server address itself
Key without an IP whitelistBybit — 90 days after creation; BingX — 14 days without useA key bound to an IP does not expire
Margin mode on UTA (Bybit)One for the whole accountChanged in the Bybit settings; on BingX — per pair

Common errors and what the bot says ​

  • “API keys do not have the required permissions” — during bot creation: the key has no permission for the chosen market. The bot does not say which permission exactly is missing — check the table above.
  • “Your API key is invalid or lacks required permissions. Update API keys according to the instructions” — during work: reissue the key and replace it through the bot card → 🔑 API keys.
  • “API keys have expired. (To update them — «🔑 API keys» on the bot card)” — the key's validity period on Bybit has ended.
  • “The API key has no permission for this operation” — the permissions were revoked after the bot was created.
  • “ℹ️ Couldn't set the margin mode 'ISOLATED' automatically. On Unified Trading (UTA) accounts the margin mode is set at the account level, not per symbol. The trade was opened using the account's current mode…” — set the mode by hand on the exchange.
  • “This API key belongs to a copy-trading master account…” — use a key of a regular account.
  • “This API key has the withdrawal permission enabled…” — remove the Withdraw permission in the key settings on the exchange, or create a new key without it, and send the key again.
  • “This API key has P2P trading permissions enabled…” — remove the P2P permissions in the key settings on Bybit, or create a new key without them, and send the key again.