> For the complete documentation index, see [llms.txt](https://guide.moontrader.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.moontrader.com/nachalo-raboty/rabota-s-birzhei/poluchenie-api-klyuchei-dlya-torgovli/poluchenie-api-klyuchei-dlya-binance.md).

# Получение API ключей для Binance

{% hint style="warning" %}
Перед созданием ключей должна быть пройдена верификация и настроена двухфакторная аутентификация Google Authenticator.
{% endhint %}

#### Основной аккаунт

1. Войдите в аккаунт Binance
2. Перейдите в раздел управления API: «Аккаунт» → «Управление API»

   <figure><img src="/files/fO7Z7w3SSZA01ol90dXV" alt=""><figcaption></figcaption></figure>
3. Нажмите «Создать API», выберите тип ключа «Сгенерированный системой»

   <figure><img src="/files/oGnq65lRTcUGnVsODy80" alt=""><figcaption></figcaption></figure>
4. Введите имя ключа (например, «MoonTrader»)

   <figure><img src="/files/m9XPaPmh3CWUQmp8Y4ka" alt=""><figcaption></figcaption></figure>
5. Подтвердите через email и 2FA<br>

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

#### Настройка прав доступа

<details>

<summary>По умолчанию торговля фьючерсами через API недоступна.</summary>

Чтобы активировать фьючерсы для API:

1. Перейдите на сайт Binance в раздел «Фьючерсы»
2. Пройдите обязательный тест на знание фьючерсной торговли
3. После успешного прохождения теста фьючерсы станут доступны для добавления в API-ключ

</details>

Только после выполнения этих шагов вы сможете использовать фьючерсную торговлю через MoonTrader.

Установите следующие права:

* «Разрешить чтение»
* «Включить фьючерсы»
* «Включить спотовую и маржинальную торговлю»
* «Включить возможность внутренних переводов»

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

#### Настройка белого списка IP

При создании API-ключей рекомендуется указать список разрешённых IP-адресов. Только устройства с указанными IP смогут использовать ключ — это защищает от несанкционированного доступа, даже если злоумышленник получит ваши ключи.

**Какие IP указывать:**

* IP сервера с ядром MoonTrader — откуда отправляются торговые запросы
* IP сервера с Watchdog — если используете систему мониторинга для нескольких аккаунтов

**Настройка:**

1. Включите «Разрешить доступ только доверенным IP-адресам»
2. Добавьте внешний статический IP вашего сервера с ядром MoonTrader
3. Если используете Watchdog на отдельном сервере — добавьте также его IP

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

#### Сохранение ключей

Сохраните **Секретный ключ (Secret Key)** — он отображается только один раз.

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

#### Создание ключей для субаккаунтов

Для субаккаунтов перейдите: «Профиль» → «Субаккаунты» → «Управление API»

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

1. Нажмите «Создать API», выберите тип ключа «Сгенерированный системой»

   <figure><img src="/files/Wr2tA9cMXOrGv3uFk4V8" alt=""><figcaption></figcaption></figure>
2. Выберите нужный субаккаунт из списка

   <figure><img src="/files/kPf5GIsCuloSHa5R9ma8" alt=""><figcaption></figcaption></figure>
3. Повторите все шаги создания ключа


---

# 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 dynamically by asking a question.

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

```
GET https://guide.moontrader.com/nachalo-raboty/rabota-s-birzhei/poluchenie-api-klyuchei-dlya-torgovli/poluchenie-api-klyuchei-dlya-binance.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
