<mxfile host="app.diagrams.net" modified="2026-07-04T12:53:14.220Z" agent="codegraph-codewiki-reference-docs" version="22.1.0">
  <diagram id="runtime-flow" name="实时交易运行时序图">
    <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="login" value="登录/会话
auth store + JWT" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ECFEFF;strokeColor=#CBD5E1;" vertex="1" parent="1"><mxGeometry x="40" y="170" width="150" height="70" as="geometry"/></mxCell><mxCell id="config" value="配置交易员
AI Model / Exchange / Source" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F7FBFF;strokeColor=#CBD5E1;" vertex="1" parent="1"><mxGeometry x="245" y="85" width="165" height="76" as="geometry"/></mxCell><mxCell id="strategy" value="绑定策略
Strategy Studio" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F7FBFF;strokeColor=#CBD5E1;" vertex="1" parent="1"><mxGeometry x="245" y="255" width="165" height="76" as="geometry"/></mxCell><mxCell id="start" value="启动运行
/api/trader/start" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF7ED;strokeColor=#CBD5E1;" vertex="1" parent="1"><mxGeometry x="470" y="170" width="150" height="70" as="geometry"/></mxCell><mxCell id="loop" value="执行循环
market -&gt; LLM -&gt; decision" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F0FDF4;strokeColor=#CBD5E1;" vertex="1" parent="1"><mxGeometry x="680" y="170" width="170" height="76" as="geometry"/></mxCell><mxCell id="exchange" value="交易所
orders / positions" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F8FAFC;strokeColor=#CBD5E1;" vertex="1" parent="1"><mxGeometry x="910" y="75" width="170" height="76" as="geometry"/></mxCell><mxCell id="llm" value="LLM Provider
decision generation" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F5F3FF;strokeColor=#CBD5E1;" vertex="1" parent="1"><mxGeometry x="910" y="255" width="170" height="76" as="geometry"/></mxCell><mxCell id="store" value="状态持久化
decisions / equity / logs" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F8FAFC;strokeColor=#CBD5E1;" vertex="1" parent="1"><mxGeometry x="1130" y="170" width="170" height="76" as="geometry"/></mxCell><mxCell id="dashboard" value="实时看板
polling + drilldown" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ECFEFF;strokeColor=#CBD5E1;" vertex="1" parent="1"><mxGeometry x="1130" y="340" width="170" height="76" 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="login" target="config"><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="config" target="strategy"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="edge2" value="trader_id" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;strokeColor=#94A3B8;" edge="1" parent="1" source="config" target="start"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="edge3" value="strategy_id" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;strokeColor=#94A3B8;" edge="1" parent="1" source="strategy" target="start"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="edge4" value="spawn" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;strokeColor=#94A3B8;" edge="1" parent="1" source="start" target="loop"><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="loop" target="exchange"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="edge6" value="Prompt/决策" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;strokeColor=#94A3B8;" edge="1" parent="1" source="loop" target="llm"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="edge7" value="落库" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;strokeColor=#94A3B8;" edge="1" parent="1" source="loop" target="store"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="edge8" value="轮询读取" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;strokeColor=#94A3B8;" edge="1" parent="1" source="store" target="dashboard"><mxGeometry relative="1" as="geometry"/></mxCell></root>
    </mxGraphModel>
  </diagram>
</mxfile>