使用 cTrader Reporting API 进行全面报告

使用 cTrader Reporting API 进行全面报告

集成实时事件流和按需快照,用于自定义分析和对账。

关于 Reporting API

Reporting API provides a real-time view of key events occurring in the cTrader ecosystem.<span id="string_preview_id_$[0].content[0].text_2">The API also has a mechanism for retrieving past data in case any real-time messages are missed.</span> 该 API 还具有检索过去数据的机制,以防错过任何实时消息。

事件

After successful integration, you should start receiving special messages containing data about new orders, deals, positions and (optionally) changes in trading instrument prices.<span id="string_preview_id_$[0].content[0].text_2">You can use data from these messages for any number of purposes, including risk management, performance evaluation and strategic planning.</span> 您可以将这些消息中的数据用于多种目的,包括风险管理、绩效评估和战略规划。

快照

通过发送简单的 Web 请求,您可以请求特定类型的所有服务器实体及其详细信息的“快照”。 <span id="string_preview_id_$[0].content[0].text_0">By sending a simple web request, you can request a "snapshot" of all server entities of a particular type and their details.You can use this information to easily reconcile your reporting system with the state of the cTrader backend.</span>

通过 RabbitMQ 进行快速实时报告

将您的 IP 加入白名单,获取只读 RabbitMQ 凭证,并连接任何客户端以立即开始流式传输 cTrader 事件。

速度和效率

Reporting API使用轻量级的Google Protobufs发送实时事件消息,减少连接负载。

卓越的可靠性

通过简单的网络请求即可获取快照以与cTrader后端进行对账,确保您不会错过重要数据。

顺畅集成

由于Reporting API依赖于RabbitMQ,您可以使用任何现有的RabbitMQ客户端将集成时间缩短到最低。

易于维护

由于每个消息事件都有唯一的序列号,因此很容易确定在任何给定时间是否需要对账。