# Exchanges

Before you start trading, you need to enter the exchange [API key](/wiki/about/supported-exchanges/creating-api-keys.md) and secret, as well as the trading fees level for each exchange.

To enter API keys, go to [**Profile** ](http://localhost:5000/profile)**> Exchanges**.

Select your [exchange](/wiki/about/supported-exchanges.md) and fill in all the fields for this exchange.

{% hint style="success" %}
The master key is just the API key you've registered for an exchange.

Using the same registered key for both the "master key" and "key" fields is OK.
{% endhint %}

![](/files/-MOpcyt4Jz8tX7kSjALQ)

### Settings in detail

| Field                                        | Description                                                                                                                                                                                                                                                                                                 |
| -------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Master Key**                               | <p>The API key registered to be used with Gunbot.</p><p><br>This is the key you've registered during an order, or have entered on the "swap exchanges" page. Each exchange has it's own master key.<br></p><p>This key may have read only access as long as you use a different Key for actual trading.</p> |
| **Key**                                      | <p>The API key used for trading, can be the same as Master Key.</p><p>This key must exist in the same exchange account as the Master Key.</p>                                                                                                                                                               |
| **Master Secret**                            | API secret belonging to "master key"                                                                                                                                                                                                                                                                        |
| **Secret**                                   | API secret belonging to "key"                                                                                                                                                                                                                                                                               |
| **Delay**                                    | <p>Time in seconds between processing two pairs on the same exchange.</p><p>10 is generally a safe value, you can try lower delays if you see the bot running without errors for several hours.</p>                                                                                                         |
| **Trading Fees**                             | Fee percentage per trade, use the appropriate value for your exchange and fees level.                                                                                                                                                                                                                       |
| **Passphrase** (needed for select exchanges) | Some exchanges require a passphrase for each API key, it may be called slightly different on the exchange itself.                                                                                                                                                                                           |
| **Market** (needed for select exchanges)     | Some exchanges require specifying the market the bot will be used on: spot, swap or, delivery or futures. Applies to Binance Futures, FTX, Okex and BitGet.                                                                                                                                                 |

## Market selection

If an exchange requires specifying a market type, you can only run pairs of that specific market type (futures, for example) in the same bot instance.

| Exchange         | Market options                                                                                                                                |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `binanceFutures` | <p><strong>futures</strong>: USDT margined pairs</p><p><strong>delivery</strong>: coin margined pairs</p>                                     |
| `binance`        | **spot**: spot trading (automatically set by GUI)                                                                                             |
| `ftx`            | <p><strong>spot</strong>: spot trading</p><p><strong>futures</strong>: futures pairs</p>                                                      |
| `okex3`          | <p><strong>spot</strong>: spot trading</p><p><strong>futures</strong>: futures pairs</p><p><strong>swap</strong>: perpetual futures pairs</p> |
| `bitget`         | <p><strong>spot</strong>: spot trading</p><p><strong>futures</strong>: futures pairs</p><p><strong>swap</strong>: perpetual futures pairs</p> |


---

# 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://gunthy.gitbook.io/wiki/setup-and-general-settings/profile-settings/connect-exchange.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.
