> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blockhouse.app/llms.txt
> Use this file to discover all available pages before exploring further.

# BIT and Bybit

> Get a Bybit sub-account from BIT, set up Cross Margin and one-way mode, then create its two API keys and enter them in Blockhouse.

> [!NOTE]
>
> Use the Bybit website for these steps, as API keys can't be created in the app.

**1. Apply for your Bybit sub-account**

In the BIT Prime Brokerage portal, open **Accounts** → **Open Account**. On the **CEFI** tab, choose **Application** next to Bybit, then set:

* **Account's Type:** where it's offered, the type the strategy needs, such as **Portfolio Margin** on Binance
* **Custody:** **Bybit with no external Custody**
* **Account's Api:** **Create API by yourself**

Choose **Confirm** and complete the verification. BIT usually approves the sub-account within a day. Then, in **Accounts** → **My Accounts**, choose **Login Info** on its row for the sub-account's login, and log in to it for the steps below.

> [!NOTE]
>
> The other custody options, such as Ceffu, Copper or Oasis, are only needed if you're taking out a loan through BIT. If you are, ask BIT which one to choose, and make sure every sub-account you apply for is in the same [risk control unit (RCU)](https://docs.blockhouse.app/reference/glossary.md#risk-control-unit-rcu): confirm both with your BIT contact.

<video autoPlay src="https://mintcdn.com/blockhouse/lG-XTofc-2encmxB/images/bit-request-sub-account.mp4?fit=max&auto=format&n=lG-XTofc-2encmxB&q=85&s=171a86cf261614379a836b1199b1454c" aria-label="Accounts, then Open Account, then Application next to Binance, with Portfolio Margin, no external custody and Create API by yourself chosen before Confirm" />

**2. Check Cross Margin**

In the sub-account, open **Assets** → **Unified Trading**. The badge next to the title should read **Cross Margin**. If it doesn't, choose the badge to open **Choose Margin Mode**, then choose **Setting** under **Cross Margin**.

<video autoPlay src="https://mintcdn.com/blockhouse/lG-XTofc-2encmxB/images/bybit-1-cross-margin.mp4?fit=max&auto=format&n=lG-XTofc-2encmxB&q=85&s=66004b0c329c46673bc2f16fafe2dd2f" aria-label="Choosing the margin mode badge on Unified Trading, then Setting under Cross Margin, which Choose Margin Mode then shows as Currently Using" />

**3. Set one-way mode**

On the USDT perpetual trading page, for example BTCUSDT, open the menu at the top right → **Preference Settings**. On the **Trade** tab, check **Margin Mode** reads **Cross Margin**, then open **Position Mode**, choose **One-Way Mode**, tick **Apply to all pairs** and **Confirm**.

<video autoPlay src="https://mintcdn.com/blockhouse/lG-XTofc-2encmxB/images/bybit-2-one-way.mp4?fit=max&auto=format&n=lG-XTofc-2encmxB&q=85&s=da0a5e966987483c279ad3d3d0e04211" aria-label="Opening Preference Settings from the top-right menu on the trading page, then Position Mode, with One-Way Mode selected" />

**4. Create the read-only key**

In Blockhouse, on the **Bybit** tab of the Credentials step, choose **Copy** → **Comma** on the **Read-only API IPs**.

On Bybit, in the sub-account, open your profile icon → **API** → **Create New Key** → **System-generated API Keys** and set:

* **API Key Usage:** **API Transaction**
* **Name for the API key:** for example `Blockhouse read-only`
* **API Key Permissions:** **Read-Only**
* **Only IPs with permissions granted are allowed to access the OpenAPI**, then paste the IPs
* Tick everything under **Unified Trading** (**Orders**, **Positions**, **USDC Derivatives Trading** and **SPOT** **Trade**) and under **Assets** (**Account Transfer**, **Subaccount Transfer** and **Convert Exchange History**), which on a read-only key only read those records. Leave **Earn** off.

Choose **Submit** and enter your 2FA code. Paste the key and secret into **Read-only API Key** and **Read-only API Secret** in Blockhouse straight away, as Bybit shows the secret only once. Tick **IPs are whitelisted for read-only API**.

<video autoPlay src="https://mintcdn.com/blockhouse/lG-XTofc-2encmxB/images/bybit-3-read-only-key.mp4?fit=max&auto=format&n=lG-XTofc-2encmxB&q=85&s=37c2a93f60ee04b0075123719d937e30" aria-label="Creating a system-generated key for API Transaction, Read-Only, with the IPs pasted, then ticking Unified Trading and Assets" />

**5. Create the trading key**

In Blockhouse, choose **Copy** → **Comma** on the **Trading API IPs**, then create a second key on Bybit the same way, for example `Blockhouse trading`, with **Read-Write** and those IPs. Tick everything under **Unified Trading**: **Orders**, **Positions**, **USDC Derivatives Trading** and **SPOT** **Trade**.

Leave **Earn** and everything under **Assets** off, so the key can't move funds. Choose **Submit**, enter your 2FA code, paste the key and secret into **Trading API Key** and **Trading API Secret**, and tick **IPs are whitelisted for trading API**.

<video autoPlay src="https://mintcdn.com/blockhouse/lG-XTofc-2encmxB/images/bybit-4-trading-key.mp4?fit=max&auto=format&n=lG-XTofc-2encmxB&q=85&s=43ffc31b1e5da92f009ed93211f26d45" aria-label="Creating a second key with Read-Write and the IPs pasted, then ticking everything under Unified Trading" />

**6. Finish in Blockhouse**

In the BIT Prime Brokerage portal, open **Accounts** → **My Accounts**. In the **Sub-account List**, copy the **Account Number** for Bybit, for example `1234567_bybit_000001`. In Blockhouse, on the **Bybit** tab, enter it in **BIT account number for Bybit**.

Check that every key field on the tab is filled in and both IP boxes are ticked. Set up any other exchange from the [BIT guide](https://docs.blockhouse.app/open-an-account/connect-your-exchanges/prime-brokers/bit), then [submit the Credentials step](https://docs.blockhouse.app/open-an-account/connect-your-exchanges).

<video autoPlay src="https://mintcdn.com/blockhouse/lG-XTofc-2encmxB/images/bit-2-account-list.mp4?fit=max&auto=format&n=lG-XTofc-2encmxB&q=85&s=8fd7ba48653d4f25ab2e073708560198" aria-label="Accounts, then My Accounts, showing the Sub-account List with each account's Account Number and Exchange" />

> **Bybit sources**
>
> Checked against Bybit's help centre on 9 October 2026. Bybit renames menus from time to time; if a label differs, use the nearest match.
>
> * [How to Create Your API Key](https://www.bybit.com/en/help-center/article/How-to-create-your-API-key)
> * [How to Get Started With a Standard Subaccount](https://www.bybit.com/en/help-center/article/How-to-Get-Started-With-Standard-Subaccount)
> * [Differences Between the Margin Modes Under the UTA](https://www.bybit.com/en/help-center/article/Differences-Between-the-Margin-Modes-Under-the-Unified-Trading-Account)
> * [Unified Trading Account asset page](https://www.bybit.com/en/help-center/article/Unified-Trading-Account-Asset-Page)
> * [One-Way Mode and Hedge Mode](https://www.bybit.com/en/help-center/article/Difference-Between-Position-Modes-One-Way-Mode-and-Hedge-Mode)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.