Skip to main content

Bybit


bybit-Logobybit-Logo

Connecting Bybit to Tealstreet

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

Consider supporting Tealstreet by using the referral link.

  • Next, log into your Tealstreet account.
    • V3 requires a new account.
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.
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
  • Ensure you have Bybit selected as the exchange.

  • Consider supporting Tealstreet by using the referral link.

  • 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 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.


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.