# Required Parameters

🤖To participate in the Funding Rate Arbitrage strategy, you need to create a <mark style="color:green;">**Main Account**</mark> (do not use <mark style="color:red;">Sub-Accounts</mark>) within the accounts of the exchanges you want to connect to XAPY

<mark style="color:red;">**Condition 1:**</mark> There must be no existing open positions (Long or Short) in the Futures account.

<mark style="color:red;">**Condition 2:**</mark> Once connected to XAPY, you must not manually open or close positions on the exchange, as this will imbalance the positions previously opened by the XAPY bot.

{% hint style="info" %}
For the Funding Rate Arbitrage strategy, you need to hold positions for as long as possible (if the profit direction is not unfavorable Or when a position is occupying too much PnL). Therefore, the positions for this strategy need to be completely separate and independent from other strategies.

If you accidentally open new positions or manually trade other futures contracts on this main account, it may cause an **imbalance in positions across exchanges**. In such cases, the **XAPY bot may forcibly liquidate** or close certain positions to ensure that **Delta Neutral = 0** is always maintained and not violated.

*If you still want to trade manually, please create a sub-account for that purpose. Absolutely no manual trading should be done on the main account connected to XAPY.*
{% endhint %}

<mark style="color:red;">**Condition 3:**</mark> Switch the order mode from hedge mode to **one-way mode.**

<figure><img src="/files/XSqpXpwwEZnnUUjF0Gu4" alt="" width="334"><figcaption></figcaption></figure>

<mark style="color:red;">**Condition 4:**</mark> Margin mode is Cross (do not use Isolated mode).

<mark style="color:red;">**Some additional notes:**</mark>

\+ Disable slippage **protection mode** (option).

<figure><img src="/files/IsadBBJTQUgcO1cDYj9F" alt="" width="375"><figcaption></figcaption></figure>

\+ Change the Futures unit setting to **Quantity** ( *contracts size* )

<figure><img src="/files/kNeCrdFLUwwCmn8Ts7Bp" alt=""><figcaption></figcaption></figure>


---

# 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/setup/on-crypto-exchanges/quickstart.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.
