# Bybit

This instruction serves as a guide for connecting the ByBit exchange to the ATAS platform.

{% hint style="info" %}
尚未拥有Bybit账户？请通过专属链接注册：[accounts.binance.com/register?ref=YO4MVRZB](https://accounts.binance.com/register?ref=YO4MVRZB)  &#x20;
{% endhint %}

{% hint style="danger" %}
即可享受交易手续费折扣：自主管理现货账户手续费立减20%，期货账户手续费立减10%。
{% endhint %}

<figure><img src="/files/9nZUsy09L3knqpJWAFng" alt=""><figcaption></figcaption></figure>

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

1\.  若需在ATAS中连接账户，需先创建API密钥。您可在用户中心通过以下链接完成创建：<https://www.bybit.com/app/user/api-management>

2\.  为保障ATAS正常连接，请在交易所API设置中完成以下配置：

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

3. 使用生成的密钥在ATAS中连接账户。具体操作：于平台主界面点击【连接管理】→【添加】→选择Bybit→点击【下一步】。

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

随后将打开协议签署窗口：

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

{% hint style="info" %}
OCO（one cancels other）订单在连接Bybit时于本地计算机进行模拟。这意味着ATAS必须与交易所保持连接，OCO订单才能正常运作。若连接中断且OCO组中任一订单已成交，该组剩余订单将不会被自动取消！
{% endhint %}

4. 在ATAS中配置连接

<figure><img src="/files/0EpqXPzsxOAZCqyCNBbh" alt=""><figcaption></figcaption></figure>

API密钥、Secret密钥：请复制并粘贴在官网上生成的密钥对。 &#x20;

使用测试环境：若连接测试网络账户则需启用此选项

配置连接后，它将作为单独一行出现在连接列表中：

<figure><img src="/files/2lxBRcVFsUrFARXJQh00" alt=""><figcaption></figcaption></figure>

1. 添加 - 添加新连接。
2. 类型 - 连接源。
3. 名称 - 连接名称，可自行设置。
4. Status - 连接状态。
5. 报价提供商 - 选择报价提供商的选项（此连接将用作报价提供商）。
6. 自动连接 - 如果希望在平台启动时自动连接，则需要启用此选项。
7. 连接设置按钮。
8. 从列表中删除连接按钮。
9. 连接/断开连接 - 连接/断开连接器。

{% hint style="info" %}
连接配置完成后，将在连接列表中显示为独立条目。该窗口的设置详情可查阅[《连接设置窗口》](https://help.atas.net/en/support/solutions/articles/72000612212-connection-settings-window)指南。
{% endhint %}


---

# 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://start.atas.net/cn/di-si-bu-zi-zhu-lian-jie-jiao-yi-zhang-hu/jia-mi-huo-bi/bybit.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.
