> 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/en-moontrader-docs/getting-started/working-with-exchanges/getting-api-keys-for-trading.md).

# Getting API Keys for Trading

### What Are API Keys

API keys are special access codes that allow the MoonTrader terminal to connect to your exchange account and perform trading operations on the exchange. Without them, the terminal cannot trade.

### How API Keys Work

When creating an API key, the exchange provides two components:

* **API Key (public key)** — identifies your application
* **Secret Key (secret key)** — confirms that the request is actually from you

Some exchanges also require:

* **Passphrase** — an additional password for enhanced security

### API Key Access Rights

When creating keys, configure their permissions:

* **Read** — view balances, trade history, open orders
* **Trade** — place and cancel orders
* **Transfer** — internal transfers between wallets
* **Withdraw** — do NOT enable for security

### API Key Security

Basic principles:

* Never enable withdrawal rights
* Use IP whitelist — restrict access only to your servers
* Do not share keys with third parties

### IP Whitelist

IP whitelist is a list of allowed IP addresses for using the key. It is recommended to specify:

* the public IP address of the server running the MoonTrader core
* the public IP address of the server with Watchdog monitoring system (if used)

### Prerequisites for Creating API Keys

✅ KYC verification completed on the exchange

✅ Two-factor authentication (2FA) configured

✅ Static IP of your server is known

✅ Decision on keys naming(for example, "MoonTrader")

**Important:** the Secret Key is displayed only once during creation. Save it immediately after generation.

### Select an Exchange to Create API Keys:

* [Getting API Keys for Binance](/en-moontrader-docs/getting-started/working-with-exchanges/getting-api-keys-for-trading/getting-api-keys-for-binance.md)
* [Getting API Keys for Bybit](/en-moontrader-docs/getting-started/working-with-exchanges/getting-api-keys-for-trading/getting-api-keys-for-bybit.md)
* [Getting API Keys for OKX](/en-moontrader-docs/getting-started/working-with-exchanges/getting-api-keys-for-trading/getting-api-keys-for-okx.md)
* [Getting API Keys for Hyperliquid](/en-moontrader-docs/getting-started/working-with-exchanges/getting-api-keys-for-trading/getting-api-keys-for-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/en-moontrader-docs/getting-started/working-with-exchanges/getting-api-keys-for-trading.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.
