> For the complete documentation index, see [llms.txt](https://docs.whalinvest.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.whalinvest.com/cle-api.md).

# Clé API

## 1️⃣ Comment générer la clé API et sa clé secrète ?

### a - Binance

Rendez-vous à l'adresse :\
<https://www.binance.com/fr/support/faq/360002502072>

**Pour votre sécurité**, Binance à mis à jour ses règles concernant les clés API et les restrictions IP.

{% hint style="danger" %}
**VOUS DEVEZ PRÉCISER UNE ADRESSE IP DE FILTRAGE**
{% endhint %}

**Whalinvest vous attribut une adresse IP** lorsque vous ajoutez un exchange. Vous pouvez **retrouver l'adresse IP** qui vous a été attribuée dans la **page mon compte**, **onglet échangeur**, en cliquant sur le **bouton d'édition d'un échangeur**.

![Configuration des droits de la clé API Binance](/files/-MfroTcPgcJyT9fl7PLX)

### b- Bitfinex

Rendez-vous à l'adresse :\
<https://support.bitfinex.com/hc/en-us/articles/115002349625-API-Key-Setup-Login>

![ Configuration des droits de la clé API Bitfinex](/files/-Mc_jkosaK_XBd3ju205)

{% hint style="danger" %}
Veillez bien à **ne pas autoriser** les droits de **retrait** !
{% endhint %}

### c - KuCoin

Rendez-vous à l'adresse :\
<https://www.kucoin.com/account/api>

{% hint style="info" %}
Il faut au préalable avoir ajouter une système d'authentification 2FA et un mot de passe de trading de 6 caractères
{% endhint %}

![ Configuration des droits de la clé API KuCoin](/files/-Mk8n4nEnk0Ps4nimYpi)

{% hint style="danger" %}
Veillez bien à **ne pas autoriser** les droits de **retrait** !
{% endhint %}

## 2️⃣ Ajouter l'échangeur sur Whalinvest

Cliquez sur votre nom puis sur *Mon compte*

Cliquez sur l'onglet *Échangeur*

Cliquez sur le *+*

Sélectionnez l'échangeur, entrez la clé API et la clé secrète et confirmez.


---

# 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://docs.whalinvest.com/cle-api.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.
