# Rithmic

本指南为通过Rithmic自主连接ATAS账户提供说明。Rithmic账户可通过两种方式连接ATAS：直连模式或通过RTrader Pro中转。具体操作指南如下所示。

***

{% hint style="info" %}
将您的Rithmic账户连接到ATAS有两种方法：直接连接和通过RTrader Pro连接。以下是每种方法的说明。
{% endhint %}

{% stepper %}
{% step %}

## [Connecting Rithmic account directly to ATAS](#connecting-rithmic-account-directly-to-atas-1) <a href="#connecting-rithmic-account-directly-to-atas" id="connecting-rithmic-account-directly-to-atas"></a>

{% endstep %}

{% step %}

## [Connecting a Rithmic account to ATAS via RTrader Pro](#connecting-a-rithmic-account-to-atas-via-rtrader-pro-1) <a href="#connecting-a-rithmic-account-to-atas-via-rtrader-pro" id="connecting-a-rithmic-account-to-atas-via-rtrader-pro"></a>

{% endstep %}

{% step %}

## [An important feature of Rithmic connection](#an-important-feature-of-rithmic-connection-1) <a href="#an-important-feature-of-rithmic-connection" id="an-important-feature-of-rithmic-connection"></a>

{% endstep %}
{% endstepper %}

{% hint style="warning" %}
对于 APEX 账户，[请查看其他连接建议](https://help.atas.net/en/support/solutions/articles/72000635097-recommendations-for-apex-rithmic-accounts)
{% endhint %}

在ATAS平台主界面配置Rithmic连接时，请依次点击：连接管理 → 添加 → 选择Rithmic → 点击下一步。

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

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

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

{% hint style="info" %}
OCO（One Cancels Other/一个取消另一个）订单在您本地计算机上进行连接模拟。这意味着ATAS必须与您的经纪商保持连接，OCO订单才能正常运作。若经纪商连接中断，且OCO组中某一订单已成交，该组其余订单将不会被自动取消！如无异议，请点击“Accept, Please continue/我接受，请继续”。
{% endhint %}

## 在ATAS平台直接自主连接Rithmic账户 &#x20;

{% hint style="danger" %}
账户绝对不可同时连接至RTrader Pro或其他交易平台。
{% endhint %}

1. 请输入Rithmic账户的登录名与密码
2. 根据账户类型与经纪商选择对应服务器
3. 如需降低CPU负载，可勾选"聚合行情"选项——此模式下Rithmic将推送简化市场数据，但请注意同时会降低数据更新频率。
4. 取消勾选"通过RTraderPro连接"选项

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

## ​​通过RTrader Pro在ATAS中自主连接Rithmic账户 &#x20;

{% hint style="danger" %}
注意：仅能通过RTrader Pro在ATAS中连接一个Rithmic账户&#x20;
{% endhint %}

{% hint style="danger" %}
ATAS连接器与RTrader Pro中的设置必须完全一致
{% endhint %}

1. 登录RTrader Pro，启用【Allow Plugins \[ON]/允许插件连接】功能
2. 在ATAS的Rithmic连接设置中勾选"通过RTrader Pro连接"
3. 如需降低CPU负载可勾选"聚合行情"——此模式下Rithmic将推送简化市场数据（请注意：此举会同时降低数据更新频率）

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

连接配置完成后，将在连接列表中显示为独立条目。

该窗口的设置详情可查阅[《连接设置窗口》](https://help.atas.net/ru-RU/support/solutions/articles/72000612212)指南。

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

1. 添加 - 创建新连接配置。
2. 类型 - 连接源类型。
3. 名称 - 可自定义的连接名称。
4. 状态 - 当前连接状态。
5. 行情提供商 - 选择行情数据提供商（该连接将作为行平台的情供数据来源）。
6. 自动连接 - 启用后程序启动时自动建立连接。
7. 连接设置按钮。
8. 删除按钮 - 从列表移除连接配置。
9. 连接/断开 - 启用或禁用该连接器。

{% hint style="info" %}
您可以通过以下链接了解该窗口的设置： [连接设置窗口](https://help.atas.net/en/support/solutions/articles/72000612212)
{% endhint %}

## Rithmic连接的重要特性&#x20;

实践表明，Rithmic连接对网络通道和CPU负载较为敏感。当CPU负载过高或网络通道存在问题时，Rithmic连接可能出现不稳定现象。

### 连接问题通常表现为以下类型：

✔ 若启用插件连接后尝试非插件模式，需重启应用方可生效。

✔ 若同时创建两个连接配置（一个启用插件模式，另一个未启用），则非插件连接将无法成功建立。

✔ 当某个Rithmic特定服务器不可用时，连接可能长时间处于等待状态。连接启动一分钟后报错，更换服务器后重新连接时，需等待数分钟使前次连接完全关闭。

✔ 连接中断：此时ATAS会显示相应通知。

✔ 潜在连接丢失：这是介于已连接和已断开之间的中间状态。此时Rithmic会发送如下消息："PnL Connection - Heartbeat has been quiet for XX seconds"（PnL连接-心跳已静默XX秒）。其中PnLconnection/连接可能替换为Trading Connection/交易连接、History Connection/历史数据连接等。此类消息表示相应的Rithmic连接在一定秒数内未进行数据交换。对交易者而言这可能意味着：

* 若PnL连接出现故障：ATAS中显示的价格、持仓量和方向可能为先前连接正常时获取的数据，而与Rithmic服务器端的实际数据存在差异。
* 若交易连接出现故障：发送至Rithmic服务器的订单可能无法将其状态更新返回至ATAS平台。

✔ 因此，当出现此类Rithmic连接问题时，ATAS无法保证显示信息的准确性。为此ATAS平台设有双重防护机制：

* 当检测到"PnL Connection - Heartbeat has been quiet for ХХ seconds/PnL连接-心跳信号已中断XX秒"类消息时，ATAS将实时弹出警示窗口显示具体内容；
* 若用户随后执行下单或持仓调整操作，ATAS平台将强制要求确认操作，并完整列出历史接收到的所有Rithmic告警信息。

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

此种情况下需由用户自行决策是否执行该订单。

当用户自主操作包含告警Rithmic账户的组合持仓时，系统也会显示类似提示。

* [Rithmic Demo Registration](https://help.atas.net/en/support/solutions/articles/72000602458-rithmic-demo-registration)
* [Can I Connect Both CQG and Rithmic at the Same Time?](https://help.atas.net/en/support/solutions/articles/72000602343-can-i-connect-both-cqg-and-rithmic-at-the-same-time-)
* [Connecting Your Topsteptrader Account](https://help.atas.net/en/support/solutions/articles/72000602596-connecting-to-topsteptrader-account)


---

# 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/qi-huo/rithmic.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.
