Skip to main content

Bybit


bybit-Logobybit-Logo

Connecting Bybit to Tealstreet

You can follow along in the video or the steps below:

Bybit-Connect

A video was made for a previous version of Tealstreet You can click here to watch it.

  • First, make sure you are logged into your Bybit account.
    • next log into your Tealstreet account.
tip

Its a good idea to keep both Tealstreet and Bybit tabs open.

  • Once you have successfully logged into Tealstreet, navigate to the header titled ‘API Keys’
    • Click the blue button titled ‘New API Key’
Adding API
  • Choose Bybit from the dropdown menu.
Dropdown
  • Now you are ready to generate the API Keys within your Bybit Account. Head on over to the Bybit tab and:
    • Click on the User Icon.
    • Select API from the dropdown menu.
API Dropdown
  • On the API Key page click on the Create New Key Button to start the key creation process.
API Create
tip

You can get to this page directly by navigating to this link

  • Choose system generated API key.
System Api

Bybit API Creation

  • Now you are ready to choose the settings of your Bybit API Key pair.
API Permissions 1
API Permissions 2
  1. Choose ‘Connect to Third-Party Applications.’

  2. In the Application Name select 'Tealstreet'

  3. Choose the ‘Read-Write’ permission.

  4. Select ‘Orders’ 'Positions' 'USDC Derivatives Trading' and ‘Trade’ in the permission section.

  5. Double check all the selections are correct and then click ‘Submit’.

    • A popup will appear next and prompt you to submit your 2FA code if its linked to your Bybit account.
    • Once you submit the 2FA code, you will see a new popup from Bybit with your API Key details. You need to paste those details into the API Key page of Tealstreet.

Unified Account API permissions

Unified Margin accounts have a slightly different screen.

Bybit Permissions UM



Select ‘Orders’ 'Positions' 'USDC Derivatives Trading' and ‘Trade’ in the permission section.

tip

Read more about Tealstreet's password encryption system here.

caution

Never share your API Keys with anyone.


Tealstreet API Creation

  • Once you have created the API Key on Bybit’s website, you are ready to fill out the information on Tealstreet’s API KEYS page.
Tealstreet API
1.  Ensure you have Bybit selected as the exchange.

2. Consider supporting Tealstreet by using the referral link. Traders will receive 10% off fees (lower fees helps trader profitability!).

3. Be sure to choose Tealstreet under Application Name from a System Generated Key (Not a Self Generated Key).

4. Choose a name for your Bybit account. You can choose any name you like. It is helpful for traders who utilize multiple accounts and/or subaccounts.

5. Choose your Encryption Password. Remember to save this somewhere! You will need to input this password when you navigate back to the trade page of the trading terminal.

6. Paste the API Key provided by Bybit here.

7. Paste the API Secret provided by Bybit here.

8. Click ‘Create.’
  • If all the details are correct, you will have successfully linked your Bybit account to Tealstreet. Navigate to the ‘Trade’ page of Tealstreet and select the Bybit account from the dropdown menu. If properly linked, you will see your balance/collateral appear in the Margin window of Tealstreet. Happy trading!!!
note

Be sure to double check you do not confuse API Key and API Secret. Connecting your Bybit exchange account to Tealstreet will not work if these fields are not entered correctly.

caution

An infinity stop cannot override Bybits maximum order size rule.


Unified Margin trading

Unified Margin support has recently been introduced and there are a few things that are important to take note of:

Inverse Derivatives account
  • Unified Margin does not support inverse futures, you will need to make sure you have funded your Inverse Derivatives account to trade Inverse on a UM account.

  • Users will be unable to switch to isolated margin if they have a negative USDT balance.

note

If you do not wish to use a Unified Margin account you can create a sub-account as a workaround. They default to non Unified Margin.


Bybit Specific Settings

Bybit Specific settings
  • Auto Switch to One-Way Mode: This will automatically try to switch your account to one-way mode when you select a new ticker to ensure you don't accidentally end up unexpectedly hedged.
  • Support Partial Stops: Enables the usage of partial stops instead of full-close stops. This is an extension to the default exchanges behavior.
  • Bind Stops to Position: Enabling this Prevents the user from being able to place stops without an active position

Troubleshooting

warning

On May-8-2023 Bybit mandated KYC for all users, and shortly before that it started banning US IP addresses. If you are trying to trade from a restricted country or did not do the KYC you will not be permitted to execute orders even if you previously were able to.

note

In March 2024 Bybit phased out support for Perpetual Futures for users in the Netherlands due to regulatory reasons. You can find more info here.

Why am I getting an error about unmatched IP when trying to use testnet? I used the system generated option

  • Testnets are generally provided on a best-effort basis and are not guaranteed to work.