Skip to main content

How to connect Bybit API keys?

Learn how to create and connect your Bybit API keys to Stoic AI with step-by-step instructions and required permissions.

To connect your Bybit exchange account to Stoic AI (discover more at 👉 stoic.ai), you will need to create a dedicated API key with specific permissions. Follow the steps below to complete the setup.
​

Steps

  1. Log In to your Bybit account.

  2. After logging in, click on your Account/Profile icon in the upper right-hand corner and navigate to API Keys.

  3. Click on the Create New Key button. On the popup window choose API key type — System-generated API Keys.

  4. Enter a name for the API in the Name for the API key section (it can be any name; we suggest 'Stoic').

  5. Enable following API Key Permissions:

    • Select Read-Write.

    • Paste Stoic's list of Trusted IP addresses, generated in the Stoic app, into the "Only IPs with permissions granted are allowed to access the OpenAPI" section, separating them with commas.

    • Check Unified Trading (Orders, Positions, USDC Derivatives Trading, Trade).

    • Scroll down to Assets and check Assets (Convert, Exchange History).

Figure 1: Setting up API Key Permissions, Read-Write access, and IP Whitelist on Bybit.

Bybit API Key configuration page showing Name, Read-Write permissions, IP Whitelist, and selected Unified Trading and Assets options

  • Click the Submit button (and complete 2FA verification if prompted).

  • Copy the API Key and Secret Key and paste them into Stoic app interface. Then click 'Connect' on the Stoic app. You will receive a message that the API keys are connected, and you'll be ready to start trading.

Figure 2: Key successfully added pop-up showing API Key and Secret Key on Bybit.

Bybit pop-up window displaying generated API Key, Secret Key, and Understood button


​Note: If you encounter any problems with the API key connection, please try again or contact support via in-app chat.



❓ Frequently Asked Questions (FAQ)

Q: Why do I need to restrict API access using Stoic's IP addresses?

A: Whitelisting Stoic's IP addresses provides an extra layer of security and ensures that your API keys do not expire after 3 months (unrestricted Bybit API keys expire automatically).

Q: Can I create API keys using the Bybit mobile app?

A: No, Bybit only allows API key creation through their official desktop/web interface.

Q: What if I just created a new Bybit account?

A: For newly registered accounts, Bybit may temporarily restrict API key creation for up to 48 hours for security and risk-control purposes.
​

Need help?

If you run into any issues or have questions regarding Bybit setup, please reach out to us via in-app chat or at [email protected] — we're happy to help.

Did this answer your question?