feat: 添加 Redis 消息展示功能到监控面板

- 新增 /api/messages API 接口,支持从 Redis Stream 读取消息
- 支持按策略筛选消息和分页展示
- 前端新增消息列表卡片,展示时间、策略、股票代码、动作、价格和状态
- 自动判断消息处理状态(已处理/待处理)
- 消息列表每30秒自动刷新,支持手动刷新
This commit is contained in:
2026-03-01 22:06:42 +08:00
parent e88ba5bcf9
commit 7bb0a0537b
14 changed files with 1814 additions and 806 deletions

View File

@@ -39,15 +39,15 @@
"3 801005.SI 20250221\n",
"4 801010.SI 20250221\n",
"... ... ...\n",
"2190 859811.SI 20260202\n",
"2191 859821.SI 20260202\n",
"2192 859822.SI 20260202\n",
"2193 859852.SI 20260202\n",
"2194 859951.SI 20260202\n",
"2190 859811.SI 20260209\n",
"2191 859821.SI 20260209\n",
"2192 859822.SI 20260209\n",
"2193 859852.SI 20260209\n",
"2194 859951.SI 20260209\n",
"\n",
"[1147558 rows x 2 columns]\n",
"20260206\n",
"start_date: 20260209\n"
"[1149753 rows x 2 columns]\n",
"20260213\n",
"start_date: 20260224\n"
]
}
],
@@ -96,12 +96,7 @@
"任务 20260227 完成\n",
"任务 20260226 完成\n",
"任务 20260225 完成\n",
"任务 20260224 完成\n",
"任务 20260213 完成\n",
"任务 20260212 完成\n",
"任务 20260211 完成\n",
"任务 20260210 完成\n",
"任务 20260209 完成\n"
"任务 20260224 完成\n"
]
}
],
@@ -183,7 +178,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.13.2"
"version": "3.12.11"
}
},
"nbformat": 4,