# BitMEX

This guide provides instructions on how to connect BitMEX exchange to the ATAS platform.&#x20;

***

If you do not have an account yet, you can sign up on the exchange at the [following link](https://www.bitmex.com/app/register). You can register a demo account using the [following link](https://testnet.bitmex.com).&#x20;

1\. To connect your account in ATAS, you need to create an API key. You can do this in your personal account by following [this link](https://www.bitmex.com/app/apiKeys).

2\. Connect your account using the generated keys in ATAS. To do this, in the platform's main window, click on ***Connections - Add - BitMEX***, and then click the ***Next button:***

<figure><img src="/files/D4cJQuGHMupHKCCcxgCv" alt=""><figcaption></figcaption></figure>

Next, windows for signing an agreement will open:

<figure><img src="/files/iDNw78Fx3sM2QBT2lqOv" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
OCO (One Cancels Other) orders for connecting BitMEX are simulated locally on your computer. This means that the platform must be connected to your broker for OCO orders to work properly. If you get disconnected and one of the OCO orders is executed, the other orders in the group WILL NOT BE canceled!
{% endhint %}

3. Setting up the connection in ATAS

<figure><img src="/files/G2TuoTf2bs6DUAOJTkTB" alt=""><figcaption></figcaption></figure>

**Address** - Live (real account), Test (demo account/testnet, which is created on the [website](https://testnet.bitmex.com/)).

**Key, Secret** - keys generated on the website when creating the API.

**Display currency** - choose a currency for your account.&#x20;

After configuring the connection, it will appear as a separate line in the list of connections.

<figure><img src="/files/KjoDPQvmwQotT1kMDs2B" alt=""><figcaption></figcaption></figure>

1\. **Add** – add a new connection.

2\. **Type** – connection source.

3\. **Name** – connection name which you can set yourself.

4\. **Status** – connection status.

5\. **Quote Provider** – option to select a quote provider (this connection will be used as a quote provider).

6\. **Auto-Connect** – if you want the connection to automatically occur when the platform is launched, you need to enable this option.

7\. **Connection settings button.**

8\. **Remove connection from the list button.**

9\. **Connect/Disconnect** – connect/disconnect the connector.

{% hint style="info" %}
You can read about the settings of this window at the following link: [Connection Settings Window](https://help.atas.net/en/support/solutions/articles/72000612212)
{% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://start.atas.net/francais/etape-4.-connectez-le-compte/crypto/bitmex.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
