# Generate API Key

Different cryptocurrency exchanges have different procedures for obtaining API keys

XAPY emphasizes two critical points when obtaining API keys: the **permissions** granted to the API key and the **IP address of XAPY’s servers** to be whitelisted.

1. **Read and Trade Permissions**

This permission allows the API to execute trades without performing fund transfers. If you grant only these permissions, XAPY’s automated fund transfer feature will not function. In this case, you must manually execute transfers through exchange applications when market conditions change to avoid position liquidation and maintain your positions for as long as possible.

2. **Read-Write Permissions**

This permission enables XAPY’s automatic position rebalancing feature (automated fund transfers). This grants you greater security and autonomy in account rebalancing

3. **Important Considerations**

When granting Read-Write permissions to your API key set, you must first complete the cross-exchange address whitelisting procedure described ([-> view here](/setup/on-crypto-exchanges/whitelist-address.md) ). Only whitelist the IP addresses of XAPY’s servers to ensure maximum security.

* Always store API keys in a secure location
* Only whitelist IP addresses from XAPY’s provided server list


---

# 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://docs.xapy.io/integration/generate-api-key.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.
