# Connecting to BitMEX

**Step 1: Create an API Key**\
Go to the BitMEX API key creation page:\
&#x20;<https://www.bitmex.com/app/apiKeys>

Fill in the following details:

* **Name** — choose any name for the API key (e.g., `GinArea`)
* **CIDR** — leave this field **empty**
* **Key Permissions** — select **Order**
* **Withdrawal** — **DO NOT check this box**
* **Target Account** — Select your main BitMEX account for trading — **do NOT connect a sub-account.**
* **2FA Token** — enter your 2FA code

Click **“Create API Key”**

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

**Step 2: Connect the API Key to GinArea**

After generating your API key on BitMEX, go to the **"Exchanges"** tab on the GinArea website.

Paste all required API key data, including the **Key** and **Secret**.

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

Once connected successfully, your active permissions will be displayed.

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

### Additional Information

* Video guide on how to connect the API: How to connect an API on BitMEX: [Creating and Connecting API keys](https://www.youtube.com/watch?v=GVq1a7AE93Q)
* API keys created for GinArea are permanent and do not require renewal.
* Exchange permissions largely depend on the documents you used during the KYC process. For more details, please refer to the exchange directly and consult the regulations of the country that issued your identification documents.


---

# 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://ginareas-organization.gitbook.io/ginarea.org/eng/registration-in-ginarea/connecting-to-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.
