<mxfile host="app.diagrams.net" modified="2026-07-04T12:53:14.220Z" agent="codegraph-codewiki-reference-docs" version="22.1.0">
  <diagram id="architecture" name="Trading Matrix 系统架构图">
    <mxGraphModel dx="1400" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1400" pageHeight="900" math="0" shadow="0">
      <root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="user" value="操作者
浏览器中的交易/研究用户" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F7FBFF;strokeColor=#CBD5E1;" vertex="1" parent="1"><mxGeometry x="40" y="170" width="160" height="72" as="geometry"/></mxCell><mxCell id="routes" value="React Routes
ProtectedRoute + AppLayout" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ECFEFF;strokeColor=#CBD5E1;" vertex="1" parent="1"><mxGeometry x="260" y="70" width="190" height="80" as="geometry"/></mxCell><mxCell id="features" value="Feature Modules
traders / strategy / backtest / debate" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ECFEFF;strokeColor=#CBD5E1;" vertex="1" parent="1"><mxGeometry x="260" y="220" width="190" height="92" as="geometry"/></mxCell><mxCell id="api" value="Go REST API
server/internal/handler/routes.go" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF7ED;strokeColor=#CBD5E1;" vertex="1" parent="1"><mxGeometry x="520" y="145" width="190" height="86" as="geometry"/></mxCell><mxCell id="logic" value="Domain Logic
server/internal/logic/*" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF7ED;strokeColor=#CBD5E1;" vertex="1" parent="1"><mxGeometry x="780" y="145" width="190" height="86" as="geometry"/></mxCell><mxCell id="engine" value="Execution Engine
server/internal/engine + job" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F0FDF4;strokeColor=#CBD5E1;" vertex="1" parent="1"><mxGeometry x="1040" y="60" width="190" height="88" as="geometry"/></mxCell><mxCell id="debate" value="Debate Package
server/pkg/debate" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F5F3FF;strokeColor=#CBD5E1;" vertex="1" parent="1"><mxGeometry x="1040" y="205" width="190" height="88" as="geometry"/></mxCell><mxCell id="data" value="Persistence Models
server/internal/model/mysql" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F8FAFC;strokeColor=#CBD5E1;" vertex="1" parent="1"><mxGeometry x="780" y="330" width="190" height="86" as="geometry"/></mxCell><mxCell id="external" value="External Systems
Exchange / LLM / Data Horizon" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F8FAFC;strokeColor=#CBD5E1;" vertex="1" parent="1"><mxGeometry x="1040" y="350" width="190" height="88" as="geometry"/></mxCell><mxCell id="edge0" value="访问页面" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;strokeColor=#94A3B8;" edge="1" parent="1" source="user" target="routes"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="edge1" value="装配功能" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;strokeColor=#94A3B8;" edge="1" parent="1" source="routes" target="features"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="edge2" value="API client" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;strokeColor=#94A3B8;" edge="1" parent="1" source="features" target="api"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="edge3" value="handler -&gt; logic" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;strokeColor=#94A3B8;" edge="1" parent="1" source="api" target="logic"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="edge4" value="实时交易" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;strokeColor=#94A3B8;" edge="1" parent="1" source="logic" target="engine"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="edge5" value="辩论工作流" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;strokeColor=#94A3B8;" edge="1" parent="1" source="logic" target="debate"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="edge6" value="读写状态" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;strokeColor=#94A3B8;" edge="1" parent="1" source="logic" target="data"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="edge7" value="行情/下单/LLM" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;strokeColor=#94A3B8;" edge="1" parent="1" source="engine" target="external"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="edge8" value="LLM 参与者" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;strokeColor=#94A3B8;" edge="1" parent="1" source="debate" target="external"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="edge9" value="事件/结果落库" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;strokeColor=#94A3B8;" edge="1" parent="1" source="external" target="data"><mxGeometry relative="1" as="geometry"/></mxCell></root>
    </mxGraphModel>
  </diagram>
</mxfile>