> For the complete documentation index, see [llms.txt](https://agent-x-1.gitbook.io/project-x/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://agent-x-1.gitbook.io/project-x/scripts/extended.md).

# Extended

{% tabs %}
{% tab title="Режимы" %}

<div data-with-frame="true"><figure><img src="/files/dfCaFFZmZ23XmHzV4gpz" alt=""><figcaption></figcaption></figure></div>

1. **Run trading** - запуск дельта-нейтральных позиций вилкой
2. **Clear limits file** - установка новых ограничений для аккаунта
3. **Parse statistics** - общая статистика по аккаунту
4. **Close all positions** - закрытие всех позиций/ордеров на аккаунтах
   {% endtab %}

{% tab title="Настройки" %}

<div data-with-frame="true"><figure><img src="/files/cwJThFIWPqeKz5uRya4D" alt=""><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Заполнение данных" %}

<div data-with-frame="true"><figure><img src="/files/MPm6gBMkjR0aolSRR9ar" alt=""><figcaption></figcaption></figure></div>

Для работы скрипта есть папка `/user_data`, где нужно подготовить определённые файлы. Поддерживаются два формата заполнения: **TXT** или **Excel**. Вот основные файлы и их назначение:

{% tabs %}
{% tab title="TXT" %}

<table><thead><tr><th width="133">Файл</th><th width="267">Формат строки</th><th>Примечание</th></tr></thead><tbody><tr><td><code>names.txt</code></td><td><code>Main 1</code> <br><code>Main 2</code></td><td>Названия аккаунтов. Используются для отображения в логах и идентификации действий.</td></tr><tr><td><code>proxies.txt</code></td><td><code>ip:port:login:pass</code><br><code>log:pass@ip:port</code><br><code>http://log:pass@ip:port</code></td><td>Прокси в любом из указанных форматов. Поддерживается <strong>только HTTP</strong>.</td></tr><tr><td><code>api_keys.txt</code></td><td><p><code>api_key1</code></p><p><br><code>api_key2</code></p></td><td>Апи-ключи от биржи</td></tr><tr><td><code>public_stark_key.txt</code></td><td><code>public_stark_key1</code><br><code>public_stark_key2</code></td><td>public starknet ключи от аккаунтов, генерируются при создании API</td></tr><tr><td><code>private_stark_key.txt</code></td><td><code>private_stark_key1</code><br><code>private_stark_key2</code></td><td>private starknet ключи от аккаунтов, генерируются при создании API</td></tr><tr><td><code>vaults.txt</code></td><td><code>vaults1</code><br><code>vaults2</code></td><td>Vaults ключи от аккаунтов, генерируются при создании API</td></tr></tbody></table>
{% endtab %}

{% tab title="Excel" %}

<div data-with-frame="true"><figure><img src="/files/9V8Cds61SUUnGYutrFlz" alt=""><figcaption></figcaption></figure></div>
{% endtab %}
{% endtabs %}
{% endtab %}
{% endtabs %}

{% hint style="info" %}
Подробные инструкции и видео по настройке доступны в Notion-разделе сообщества.\
GitBook содержит только описание функционала и интерфейса.
{% endhint %}


---

# 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://agent-x-1.gitbook.io/project-x/scripts/extended.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.
