> 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.md).

# Получение API ключей для торговли

## Получение API-ключей для торговли

### Что такое API-ключи

**API-ключи** — это специальные коды доступа, которые позволяют программе MoonTrader подключаться к вашему аккаунту на бирже и совершать торговые операции от вашего имени. Без них терминал не сможет торговать.

### Как работают API-ключи

При создании API-ключа биржа выдаёт два компонента:

* **API Key (публичный ключ)** — идентифицирует ваше приложение
* **Secret Key (секретный ключ)** — подтверждает, что запрос действительно от вас

Некоторые биржи также требуют:

* **Passphrase** — дополнительный пароль для повышения безопасности

### Права доступа API-ключей

При создании ключей настройте их права:

* **Чтение** — просмотр балансов, истории сделок, открытых ордеров
* **Торговля** — размещение и отмена ордеров
* **Переводы** — внутренние переводы между кошельками
* **Вывод средств** — НЕ включайте для безопасности

### Безопасность API-ключей

#### Основные принципы:

* **Никогда не включайте право на вывод средств**
* **Используйте белый список IP** — ограничьте доступ только к вашим серверам
* **Не передавайте ключи третьим лицам**

#### Белый список IP

**Белый список IP** — список разрешённых IP-адресов для использования ключа. Рекомендуется указывать:

* IP сервера с ядром MoonTrader
* IP сервера с системой мониторинга Watchdog (если используется)

### Что подготовить перед созданием ключей

✅ Пройдена верификация KYC на бирже

✅ Настроена двухфакторная аутентификация (2FA)

✅ Известен статический IP вашего сервера

✅ Придумано название для ключа (например, «MoonTrader»)

**Важно:** Secret Key отображается только один раз при создании. Сохраните его сразу после генерации.

**Выберите биржу для создания API-ключей:**

* [Получение API-ключей для Binance](/nachalo-raboty/rabota-s-birzhei/poluchenie-api-klyuchei-dlya-torgovli/poluchenie-api-klyuchei-dlya-binance.md)
* [Получение API-ключей для Bybit](/nachalo-raboty/rabota-s-birzhei/poluchenie-api-klyuchei-dlya-torgovli/poluchenie-api-klyuchei-dlya-bybit.md)
* [Получение API-ключей для OKX](/nachalo-raboty/rabota-s-birzhei/poluchenie-api-klyuchei-dlya-torgovli/poluchenie-api-klyuchei-dlya-okx.md)
* [Получение API-ключей для Hyperliquid](/nachalo-raboty/rabota-s-birzhei/poluchenie-api-klyuchei-dlya-torgovli/poluchenie-api-klyuchei-dlya-hyperliquid.md)


---

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