Skip to main content

Bybit


bybit-Logobybit-Logo

Connecting Bybit to Tealstreet

  • First, make sure you are logged into your Bybit account.

  • Next, log into your Tealstreet account.

    • Depending on when you made your account and when we did the snapshot, you might need to make a new account for v3.
tip

It's a good idea to keep both Tealstreet and Bybit tabs open for the duration of this process.

  • Click the 'Settings' button near the top right corner of the terminal.
Adding API
  • Choose Bybit from the dropdown menu.
TS 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.
warning

This guide assumes you will use the SG region for Tealstreet. If you instead want to use the JA region, you will need to choose API Transaction instead of Connect to Third-Party Applications and also manually input the IP Addresses from the Tealstreet API creation window.

API Permissions 1
API Permissions 2
  1. Choose ‘Connect to Third-Party Applications.’

    • Only choose this option if your going to use SG Region in Tealstreet.
    • Choose "API Transaction" if you are going to use JA Region in Tealstreet.
  2. In the Application Name select 'Tealstreet'

    • Again this option is only for "SG" Region in 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.

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
  • Ensure you have Bybit selected as the exchange.
  • Enable Use Tealstreet Network unless you intend to route your orders from some other location.

    • Adjust your whitelisted IP's accordingly.
  • Choose the region you would prefer. Currently this is Singapore (SG) or Japan (JA).

  • Choose a name for your Bybit account, it can be whatever you want it to be

  • Select the color you would like the API to be inside the terminal.

  • Paste the API Key provided by Bybit here.

  • Paste the API Secret provided by Bybit here.

  • Click ‘Add’

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 Unified-Margin (UTA) 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.

warning

As of Oct-2024 TealstreetV3 does not currently support isolated trading on Unified Margin accounts. V2 might still work.


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.

I have a Unified Trading Account and I moved my funds into it, API Linked successfully but I can't execute orders and Tealstreet shows I have zero margin? whats going on?

  • You might be on Isolated, Try switching to Cross Margin. Tealstreet does not currently support Isolated on Unified Margin accounts.