Bybit:Sub-account and API creation

How to create a sub-account and start API trading

Oct. 6, 2025, 9:32 a.m.
Exchanges
Bybit:Sub-account and API creation
Very important! Demo API keys are created in the DEMO Trading section on the Bybit exchange, and they are different from the API keys for real trading. When demo trading is enabled in the bot, the API keys must be demo keys!


ByBit Subaccount Creation

Step 1

Click on the profile picture to open the account menu.

Step 2

Click the “Switch/Create Account” button to see the sub-accounts.

Step 3

Click the “Create” button to add a new sub-account.

Step 4

  • Enter a memorable name, such as the configuration name of your bot;
  • Leave the account type set to “Single Trading Account”;
  • Then click the “Confirm” button to finalize the creation of the sub-account.

Step 5

  • At this point you can transfer funds to the sub-account.
  • Or click the “Skip” button if you want to do it later.
  • ATTENTION: funds on the Unified Trading Account are required for the bot to work!

Step 6

Switch to the created subaccount.


API key generation

Step 1

Click on the profile picture to display the account menu.

Make sure you are logged in to the newly created subaccount.


Step 2

Select the API link to open the API key creation page.

Step 3

Read the warning and click “Understand”.

Step 4

Click “Create a new key.”

Step 5

  • If you have not set up 2FA, Bybit will ask you to do so before proceeding.
  • The warning will say “Not yet enabled”.
  • Click “Customize” to go to the security page and customize it.

Step 6

  • Click “Settings” to configure 2FA.
  • This manual does not cover the 2FA setup.

Step 7

If you see a green check mark, the setup is complete.

Step 8

Now go back to the API creation page from step 4 and click “Create a new key”.

Step 9

Select the first option, “System-generated API keys”.


Step 10

  • First, select the “API transaction” option.
  • Then enter a name, such as “ST-Bot” to indicate where the key is used.
  • Next, select the “Read-Write” option so that the bot can open and close positions correctly.
  • Next, select the “Access to OpenAPI is only allowed to IP addresses with granted permissions” option.
  • Finally, enter the IP address of the server on which you intend to install the bot (if you install the bot on your PC, do not enter the IP, but take into account that the validity of API keys without binding to the IP address is 3 months).

Step 11

Check the “Unified Trading” box, then click “Submit”.


Step 12

Now copy both API Key and API Secret and save them in a safe place - you'll need them soon.


Step 13

If you see a message like this, your API key was successfully created!


Done! 

Recent Posts

Compensation of Neg… How the bot offsets negative realized loss (fundi…
Trade Exit Logic: L… The ST Bot uses three mechanisms to close positio…
Windows Time Error How to fixing one of the most common Windows erro…
Public Telegram Cha… Public Telegram channel with automated trade-clos…
Creating a Telegram… Link a personal Telegram bot to receive trade, av…

You might be interested

Spot Bot: Entry and Averaging Logic (Spot-Bot)
Spot-Bot operates on the “leader → altcoins” model. The user selects a leader (BTC, ETH, or SOL), and the bot uses it as the main indicator of market direction. The bot’s goal is to identify altcoins with strong correlation to the leader and open spot positions when growth probability is confirmed for both the leader and the altcoin.
Averaging Positions
Position averaging: trigger→confirmation scheme, timeframe cascade, market-phase settings, averaging examples
Indicator “Market Median”
“Market Median — 30m” is a single percentage value showing where, on average, the altcoin market sits relative to the midlines of its 30-minute regression channels over the last 1000 candles.
Start for free. Pay only from profit.
No subscriptions. No hidden fees. Just a fair share — up to 25% of your profit.
🚀 Start for free