202201005-量化交易回测系统架构详细设计文档_v1.0
<h1><center>量化交易回测系统架构详细设计文档_v1.0</center></h1>
<h2>修订记录</h2>
<table>
<thead>
<tr>
<th style="text-align: center;">版本号</th>
<th style="text-align: center;">修订人</th>
<th style="text-align: left;"><div style="width: 85px;">修订日期</div></th>
<th style="text-align: left;"><div style="width: 380px;">修订内容</div></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">V1.0</td>
<td style="text-align: center;">ChaiLinglu</td>
<td style="text-align: left;">2020-10-05</td>
<td style="text-align: left;">init</td>
</tr>
</tbody>
</table>
<p>[TOC]</p>
<h2>1.引言</h2>
<h3>1.1 编写目的</h3>
<p> 本文档给出量化回测系统1.0的设计说明,包括最终实现的功能需求、技术架构方案、业务时序图。
产品研发过程以本文档为基础,技术代码依照本文档方案执行。如过程中涉及需求、架构、方案设计调整都需要更新到本文档中。</p>
<h3>1.2 范围</h3>
<p><strong>范围说明:</strong></p>
<ol>
<li>回测驱动器模块;</li>
<li>规则引擎模块;</li>
<li>量化交易平台;</li>
<li>交易回测系统模块;</li>
</ol>
<h3>1.3 术语</h3>
<table>
<thead>
<tr>
<th style="text-align: center;">术语</th>
<th style="text-align: center;">术语定义</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
</tr>
</tbody>
</table>
<h3>1.4 参考资料</h3>
<h2>2.整体设计</h2>
<h3>2.1 整体架构图</h3>
<p><strong>业务逻辑架构图</strong>
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/0d05254ab7def92bad18c46cd89f31e0?showdoc=.jpg" alt="" />
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/f3ae2eb9434eeaca4e664531acf9265d?showdoc=.jpg" alt="" /></p>
<p><strong>运维部署架构图</strong>
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/6cf601f776d64ee792b5c54dee63ea8c?showdoc=.jpg" alt="" /></p>
<p><strong>技术架构图</strong></p>
<h3>2.2 关键子功能模块</h3>
<h3>2.3 关键业务时序图</h3>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/5617fb03f7e0b1745fa753b0f7684531?showdoc=.jpg" alt="" /></p>
<h2>3. 接口设计</h2>
<h3>3.1 三方接口</h3>
<p>暂无</p>
<h3>3.2 二方接口</h3>
<p>执行交易回测接口文档地址:<a href="https://www.showdoc.com.cn/p/60add286e3fcb47d2cd5c45dc2776643">https://www.showdoc.com.cn/p/60add286e3fcb47d2cd5c45dc2776643</a></p>
<h2>4. 子模块设计</h2>
<h3>4.1 回测驱动器模块</h3>
<h4>4.1.1 模块需求说明</h4>
<p> 回测驱动器模块对外提供接口,通过postman调用执行回测。</p>
<h4>4.1.1 架构设计图</h4>
<p>暂无</p>
<h4>4.1.2 关键业务时序图</h4>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/35027f3c0e3a20107724b4455068b3a2?showdoc=.jpg" alt="" /></p>
<h4>4.1.3 数据库结构设计</h4>
<p><strong>数据库结果及ER关系图</strong>
暂无</p>
<hr />
<h3>4.2 交易回测系统模块</h3>
<p> 交易回测系统。</p>
<h4>4.2.1 模块需求说明</h4>
<h4>4.2.1 架构设计图</h4>
<h4>4.2.2 关键业务时序图</h4>
<h4>4.2.3 数据库结构设计</h4>
<p><strong>数据库结果及ER关系图</strong></p>
<hr />
<h2>5. 性能</h2>
<h3>性能指标需求</h3>
<h4>延迟、qps、tps</h4>
<hr />
<h2>6. 安全</h2>
<h3>接口安全</h3>
<ol>
<li>内部系统安全可以先忽略;</li>
</ol>
<h3>操作安全</h3>
<ol>
<li>内部系统安全可以先忽略;</li>
</ol>
<hr />
<h2>7. 可维护性</h2>
<p>满足多策略并发回测及结果记录,目前采用多套部署的方式,每次回测应用中间件数据存储隔离。</p>
<hr />
<h2>8. 可靠性</h2>
<h2>问题</h2>
<ol>
<li>成交结果分析更高效;</li>
</ol>