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

# LTP and OKX

> LTP opens the OKX sub-account and creates its two API keys; you whitelist them and enter them in Blockhouse.

**1. Get your OKX sub-account and keys**

Ask your LTP account manager to provision a [DMA sub-account](https://docs.blockhouse.app/reference/glossary.md#dma-sub-account) on OKX for this strategy, set to Multi-currency margin with Auto-borrow on, and one-way mode, with two separate API keys: a read-only key and a trading key. LTP creates the keys on OKX and sets their permissions.

**2. Whitelist and enter the read-only key**

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

In the LTP client, open **Account** → **API Management** and find the read-only key on your OKX DMA sub-account. Edit its IP whitelist and paste the IPs. Reveal its secret, which LTP shows only once, and paste the key and secret into **Read-only API Key** and **Read-only API Secret** in Blockhouse, with the key's passphrase on OKX and Bitget. Tick **IPs are whitelisted for read-only API**.

**3. Whitelist and enter the trading key**

In Blockhouse, choose **Copy** → **Comma** on the **Trading API IPs**. Then whitelist the trading key in **API Management** the same way, and paste it into **Trading API Key** and **Trading API Secret**. Tick **IPs are whitelisted for trading API**.

**4. Finish in Blockhouse**

Copy the 5-digit **accountId** of your OKX DMA sub-account from the LTP client, or ask your account manager for it. Use this ID, not the UID OKX assigns. In Blockhouse, on the **OKX** tab, enter it in **LTP account ID for OKX**.

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

> **OKX sources**
>
> Checked against OKX's help centre and API docs on 9 October 2026. OKX renames menus from time to time; if a label differs, use the nearest match.
>
> * [What is a sub-account](https://www.okx.com/en-us/help/what-is-sub-account)
> * [Sub-accounts, account mode and API connections FAQ](https://www.okx.com/en-us/help/subaccounts-account-mode-and-api-connections-faq)
> * [Trading settings FAQ](https://www.okx.com/en-us/help/trading-settings-faq)
> * [Comparing Futures mode and Multi-currency margin mode](https://www.okx.com/en-us/help/comparing-futures-mode-and-multi-currency-margin-mode)
> * [Borrowing and repaying in Multi-currency and Portfolio margin](https://www.okx.com/en-us/help/borrowing-and-repaying-in-multi-currency-and-portfolio-margin-account-modes)
> * [API FAQ](https://www.okx.com/en-us/help/api-faq)
> * [OKX API v5 docs](https://www.okx.com/docs-v5/en/)


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