vault backup: 2026-03-20 10:42:39

This commit is contained in:
2026-03-20 10:42:39 +08:00
parent 2bf8f4e5c1
commit 7cc31ce48d
+10 -24
View File
@@ -10,41 +10,27 @@ C4Container
Container(runtime_manager, "策略运行时", "Python", "策略生命周期管理")
ContainerDb(database, "SQLite数据库", "SQLite", "存储账户、持仓、成交记录")
ContainerBoundary(gateway, "网关") {
Container(data_gateway, "数据网关", "Python", "统一数据接口")
Container(trade_gateway, "交易网关", "Python", "统一交易接口")
Container(data_gateway, "数据网关", "Python", "统一数据接口")
Container(trade_gateway, "交易网关", "Python", "统一交易接口")
}
ContainerBoundary(backends, "后端实现") {
Container(price_backend, "价格后端", "Python", "获取股票价格")
Container(stock_backend, "股票列表后端", "Python", "获取股票列表")
Container(calendar_backend, "日历后端", "Python", "交易日历")
Container(live_backend, "实时行情后端", "Python", "实时行情推送")
Container(simulate_trade, "模拟交易后端", "Python", "模拟成交")
}
}
ContainerBoundary(backends, "后端实现") {
Container(price_backend, "价格后端", "Python", "获取股票价格")
Container(stock_backend, "股票列表后端", "Python", "获取股票列表")
Container(calendar_backend, "日历后端", "Python", "交易日历")
Container(live_backend, "实时行情后端", "Python", "实时行情推送")
Container(simulate_trade, "模拟交易后端", "Python", "模拟成交")
}
}
Rel(user, console, "交互")
Rel(console, main_kernel, "启动")
Rel(main_kernel, data_gateway, "数据请求")
Rel(main_kernel, trade_gateway, "交易请求")
Rel(main_kernel, runtime_manager, "策略管理")
Rel(main_kernel, database, "持久化")
Rel(data_gateway, price_backend, "获取价格")
Rel(data_gateway, stock_backend, "获取股票列表")
Rel(data_gateway, calendar_backend, "交易日历")
Rel(data_gateway, live_backend, "实时行情")
Rel(trade_gateway, simulate_trade, "模拟交易")
```