> For the complete documentation index, see [llms.txt](https://docs.mojo.trade/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mojo.trade/user-guide/connect-your-exchange-account.md). Agents can also search and read this documentation through its [MCP server](https://docs.mojo.trade/~gitbook/mcp).

# Connect Your Exchange Account

Connect Binance, OKX, Bybit, or Bitget so agents can trade through your account.

Connect your Binance, OKX, Bybit or Bitget account so your agents can use it in the plans you approve. Your funds stay in your exchange account. MOJO never asks for permission to move funds out of your exchange account, and your API credentials are not sent to the AI.

Choose your exchange: [Binance](#binance) · [OKX](#okx) · [Bybit](#bybit) · [Bitget](#bitget).

### Before you start

In MOJO, open **Exchange accounts** and choose the exchange you want to connect.

You can also enter through the connection prompt on the Assets page or in chat. Keep the connect screen open while you configure your API key.

* Sign in to your own exchange account and complete any identity or security checks required by that exchange.
* First set the account mode described below. Create the API key after that.
* Copy every IP address from the current MOJO connect screen. Demo recordings contain example IPs. Do not copy those from a recording.
* Enter your credentials only in MOJO's secure connect form. Never send your API Key, Secret or Passphrase in chat.

| Exchange | Required account mode                           | What to enter in MOJO              |
| -------- | ----------------------------------------------- | ---------------------------------- |
| Binance  | Portfolio Margin Mode                           | API Key and Secret Key             |
| OKX      | Multi-currency margin mode                      | API Key, Secret Key and Passphrase |
| Bybit    | Unified Trading Account (UTA 2.0), Cross margin | API Key and Secret                 |
| Bitget   | Unified Account, Basic or Advanced mode         | API Key, Secret and Passphrase     |

The recordings show exchange interfaces that can change between app versions. Follow the written permission names and requirements.

### Binance

#### Step 1 — Switch to Portfolio Margin Mode

On Binance, open the **Futures** page and switch the account to **Portfolio Margin Mode**.

If the switch is unavailable, follow Binance's account eligibility instructions. Complete the switch before creating the key. If an older key stops supporting the required permissions after a mode change, create a new key in the correct mode.

[Web demo](https://cdn-img.mojo.trade/cex/binance/tutorial/v1/en/web/01-enable-portfolio-margin.gif) · [App demo](https://cdn-img.mojo.trade/cex/binance/tutorial/v1/en/app/01-enable-portfolio-margin.gif)

#### Step 2 — Create an API key

Open **API Management**, choose **Create API**, and select **System-generated**.

Give the key a label, such as `MOJO`, and complete the security verification. Self-generated keys are not supported by this connection.

[Web demo](https://cdn-img.mojo.trade/cex/binance/tutorial/v2/en/web/02-create-api-key.gif) · [App demo](https://cdn-img.mojo.trade/cex/binance/tutorial/v1/en/app/02-create-api-key.gif)

#### Step 3 — Add MOJO's IP addresses

Copy every IP from the current MOJO connect screen. In the key's restrictions, choose **Restrict access to trusted IPs only (Recommended)** and add those IPs.

Save and complete any security verification. Add the IP restriction before enabling trading permissions.

[Web demo](https://cdn-img.mojo.trade/cex/binance/tutorial/v1/en/web/03-configure-ip-whitelist.gif) · [App demo](https://cdn-img.mojo.trade/cex/binance/tutorial/v1/en/app/03-configure-ip-whitelist.gif)

#### Step 4 — Set permissions, save and connect

Turn on **Enable Reading**, **Enable Spot & Margin Trading** (sometimes labeled **Enable Spot & Margin & Stock Trading**), **Enable Portfolio Margin Trading**, and **Permits Universal Transfer**.

Keep **Enable Withdrawals** and **Enable Internal Transfer** off.

Under Portfolio Margin Mode, use the Portfolio Margin trading permission rather than looking for a separate Futures checkbox.

Save. Then, in MOJO, enter the **API Key** and **Secret Key**.

Copy the Secret before leaving the exchange's result screen. If it can no longer be retrieved, create a new key.

[Web demo](https://cdn-img.mojo.trade/cex/binance/tutorial/v2/en/web/04-enable-permissions.gif) · [App demo](https://cdn-img.mojo.trade/cex/binance/tutorial/v1/en/app/04-enable-permissions.gif)

### OKX

#### Step 1 — Confirm account mode

In OKX, open **Trade → Settings → Account mode** and select **Multi-currency margin mode**.

Portfolio margin mode is not supported by this connection. There is no requirement to turn automatic borrowing on or off. Leave that account setting as you prefer.

[Web demo](https://cdn-img.mojo.trade/cex/okx/tutorial/v1/en/web/01-enable-portfolio-margin.gif) · [App demo](https://cdn-img.mojo.trade/cex/okx/tutorial/v1/en/app/01-enable-portfolio-margin.gif)

#### Step 2 — Create an API key

Open **API & connection credentials**, create an API Key and choose **API trading** as its purpose. Set a **Passphrase** and keep it safe.

The Passphrase is the value you choose for this key, not your OKX login password.

[Web demo](https://cdn-img.mojo.trade/cex/okx/tutorial/v1/en/web/02-create-api-key.gif) · [App demo](https://cdn-img.mojo.trade/cex/okx/tutorial/v1/en/app/02-create-api-key.gif)

#### Step 3 — Enable the IP whitelist

Enable **IP whitelist** and enter every IP address copied from the current MOJO connect screen.

Check that the whitelist is actually enabled and saved. Entering an address without enabling the restriction is not enough.

[Web demo](https://cdn-img.mojo.trade/cex/okx/tutorial/v1/en/web/03-configure-ip-whitelist.gif) · [App demo](https://cdn-img.mojo.trade/cex/okx/tutorial/v1/en/app/03-configure-ip-whitelist.gif)

#### Step 4 — Set permissions, save and connect

Keep the default **Read-only** permission and enable **Trade**, **Transfer** and **Earn**. Keep **Withdraw** and **Loan** off.

For trading markets, select **Spot & Margin trading** and **Perpetual**. For trading currencies, select **All**. Save. Then, in MOJO, enter the **API Key**, **Secret Key** and **Passphrase**.

The API key's Loan permission is separate from the account's automatic borrowing setting. You do not need to change automatic borrowing to connect.

[Web demo](https://cdn-img.mojo.trade/cex/okx/tutorial/v1/en/web/04-enable-permissions.gif) · [App demo](https://cdn-img.mojo.trade/cex/okx/tutorial/v1/en/app/04-enable-permissions.gif)

### Bybit

#### Step 1 — Confirm account and margin mode

Confirm that the account is a **Unified Trading Account (UTA 2.0)**. On the derivatives trading page, set the margin mode to **Cross**.

Isolated and Portfolio Margin modes are not supported by this connection.

[Web demo](https://cdn-img.mojo.trade/cex/bybit/tutorial/v1/en/web/01-enable-portfolio-margin.gif) · [App demo](https://cdn-img.mojo.trade/cex/bybit/tutorial/v1/en/app/01-enable-portfolio-margin.gif)

#### Step 2 — Create an API key on the website

On the Bybit website, open **API Management**. Choose **System-generated API Key** and **API trading**.

Use the website for key creation, including when you are following the guide from a phone.

[Web demo](https://cdn-img.mojo.trade/cex/bybit/tutorial/v1/en/web/02-create-api-key.gif) · [App demo](https://cdn-img.mojo.trade/cex/bybit/tutorial/v1/en/app/02-create-api-key.gif)

#### Step 3 — Restrict the key to MOJO's IPs

Choose **Only IPs with permissions granted are allowed to access the OpenAPI**.

Add every IP from the current MOJO connect screen and save the restriction.

[Web demo](https://cdn-img.mojo.trade/cex/bybit/tutorial/v1/en/web/03-configure-ip-whitelist.gif) · [App demo](https://cdn-img.mojo.trade/cex/bybit/tutorial/v1/en/app/03-configure-ip-whitelist.gif)

#### Step 4 — Set permissions, save and connect

Select **Read-Write** and enable:

* **Unified Trading Account**: **Orders** and **Positions** under Contract, **USDC Derivatives Trading** under USDC Contracts, and **Trade** under Spot.
* **Earn Products**.
* **Asset Account Transfer**.
* **Convert & Convert History**.

Keep **Withdrawal** and **Master-Subaccount Transfer** off.

Asset Account Transfer is required. Master-Subaccount Transfer is a different permission and must stay off.

Save and complete the security verification. Then, in MOJO, enter the **API Key** and **Secret**.

[Web demo](https://cdn-img.mojo.trade/cex/bybit/tutorial/v1/en/web/04-enable-permissions.gif) · [App demo](https://cdn-img.mojo.trade/cex/bybit/tutorial/v1/en/app/04-enable-permissions.gif)

### Bitget

#### Step 1 — Confirm a Unified Account

Confirm that the account type is **Unified Account** and that its mode is **Basic** or **Advanced**.

If it is still a Classic Account, upgrade it before creating the key.

[Web demo](https://cdn-img.mojo.trade/cex/bitget/tutorial/v1/en/web/01-enable-portfolio-margin.gif) · [App demo](https://cdn-img.mojo.trade/cex/bitget/tutorial/v1/en/app/01-enable-portfolio-margin.gif)

#### Step 2 — Create an API key

Open **API Management** and create a **system-generated** API Key. Set a **Passphrase** (API password) and keep it safe.

Use the system-generated/HMAC creation flow shown in the demo.

[Web demo](https://cdn-img.mojo.trade/cex/bitget/tutorial/v1/en/web/02-create-api-key.gif) · [App demo](https://cdn-img.mojo.trade/cex/bitget/tutorial/v1/en/app/02-create-api-key.gif)

#### Step 3 — Bind MOJO's IP addresses

Copy all IPs from the current MOJO connect screen into **Bind IP address**.

Separate multiple addresses with standard commas. There is no additional whitelist switch to enable on this screen.

[Web demo](https://cdn-img.mojo.trade/cex/bitget/tutorial/v1/en/web/03-configure-ip-whitelist.gif) · [App demo](https://cdn-img.mojo.trade/cex/bitget/tutorial/v1/en/app/03-configure-ip-whitelist.gif)

#### Step 4 — Set permissions, save and connect

Select **Read-Write**, **Unified Account Management** and **Unified Account Trading**. Keep **Withdraw** off.

Save and complete the security verification. Then, in MOJO, enter the **API Key**, **Secret** and **Passphrase**.

You do not need to find an extra Read-only or own-account transfer checkbox for this setup.

[Web demo](https://cdn-img.mojo.trade/cex/bitget/tutorial/v1/en/web/04-enable-permissions.gif) · [App demo](https://cdn-img.mojo.trade/cex/bitget/tutorial/v1/en/app/04-enable-permissions.gif)

### Finish connecting

After saving the exchange settings, return to MOJO and submit the secure connect form. If verification succeeds, the exchange appears in your accounts and Assets page. If it fails, read the failed items, correct the settings on the exchange and try again.

Permission groups on an exchange can cover more capabilities than MOJO currently uses. Enabling the required group does not authorize an agent to perform an operation outside a plan you approve.

### What you can do once connected

* **Trade spot and perpetual futures in plain language.** Tell MOJO the exchange, the asset, the direction, the amount and any conditions. MOJO drafts a plan, and nothing runs until you review and approve it.
* **Let an agent follow your rules.** Conditional entries, take profit and stop loss, and buying or selling in stages can all run without you watching the screen. Which order types are available depends on the exchange and on what MOJO supports.
* **See your balances and positions.** Funds, spot holdings and perpetual positions show up for each connected account, labeled with the exchange they belong to.
* **Move funds and use flexible savings.** You can move funds between your own accounts on the same exchange. Some exchanges offer flexible savings products with no lock-up period. There, you can also check these products, put funds in, or take funds out. Products, eligibility and timing follow each exchange's rules.

Each exchange account stays separate. MOJO doesn't combine balances from different exchanges, and it doesn't move funds from one exchange to another.

### Manage your connection

* **Fix a connection:** correct the permission, account mode, IP restriction or credential identified by MOJO, then run the check again.
* **Replace a key:** enter a new key. The new key must come from the **same exchange account**. Do not disconnect first when you only want to replace credentials.
* **Connect a different account:** disconnect the current account before connecting the replacement account.
* **Disconnect:** use the account's disconnect action in MOJO. Agents using that connection stop, but orders and positions already on the exchange are not automatically cancelled or closed. Check and manage those directly on the exchange.

After disconnecting, remove the unused API key on the exchange if you no longer need it. MOJO cannot delete it from your exchange account for you.

### Troubleshooting

| Problem                                                  | What to do                                                                                                                                        |
| -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| A required permission is missing                         | Edit the same key, enable the named permission, save and try again. You normally do not need a new key.                                           |
| A forbidden permission is enabled                        | Turn off the named withdrawal or master/subaccount permission, save and try again. You do not need to recreate the key just to change a checkbox. |
| The IP restriction is missing or incorrect               | Add all IPs from the current MOJO connect screen, enable the restriction where required and save. Do not use IPs copied from a demo.              |
| The account or margin mode is unsupported                | Use the account mode shown in your exchange's section above.                                                                                      |
| The API Key or Secret was copied incorrectly             | Copy the full value again without spaces or line breaks. If the Secret is no longer available, create a new key.                                  |
| An OKX or Bitget Passphrase is wrong                     | Use the Passphrase set when the key was created, not your login password. If it cannot be recovered, create a new key.                            |
| The new key belongs to a different exchange account      | Replace credentials only with a key from the same account. To switch accounts, disconnect the current one first.                                  |
| The account is already connected to another MOJO account | Use that MOJO account or disconnect the exchange there before connecting it here.                                                                 |
| The exchange or MOJO is temporarily unavailable          | Wait and try again. Do not recreate a valid key because of a temporary service problem.                                                           |

**OKX Transfer permission:** it is separate from Trade. If a transfer fails because this permission is missing, edit the key on OKX, enable **Transfer**, save, then retry the transfer manually in MOJO.

### FAQ

#### Can MOJO withdraw my funds?

MOJO does not accept a key with withdrawal permission. Keep the forbidden permissions listed for your exchange off. Approved transfers within your own exchange account are different from moving funds out of the exchange.

#### Do I need to move funds into MOJO first?

No. When you trade through a connected exchange account, agents use the funds already in that account, following the plan you approved.

#### Does MOJO charge a fee on exchange trades?

No. MOJO charges no platform fee on trades made through a connected exchange account. The exchange's own trading fees apply, and funding applies to perps. [Trading Fees](https://docs.mojo.trade/user-guide/trading-fees.md) lists what MOJO charges on other trades.

#### Does connecting an account let MOJO trade without asking?

No. Connecting only makes the account available. Any plan that trades still comes to you as a card to review and approve.

#### Does the AI see my credentials?

No. Use the secure connect form, which sends credentials to the connection service for verification and encrypted storage. Do not paste credentials in chat or share screenshots containing them.

#### Do I need a new key whenever a permission is wrong?

Usually no. Edit the existing key, correct the named permission or IP restriction and save. Create a new key when the existing one was deleted, the Secret or Passphrase cannot be recovered, or an account-mode change has made the old key unsuitable.

#### Which IP addresses should I use?

Always use all addresses shown on your current MOJO connect screen. The addresses in recordings are examples and may belong to a different environment.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mojo.trade/user-guide/connect-your-exchange-account.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
