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 000006.SZ 20250312\n",
"4 000007.SZ 20250312\n",
"... ... ...\n",
"27325 920978.BJ 20260202\n",
"27326 920981.BJ 20260202\n",
"27327 920982.BJ 20260202\n",
"27328 920985.BJ 20260202\n",
"27329 920992.BJ 20260202\n",
"27350 920978.BJ 20260209\n",
"27351 920981.BJ 20260209\n",
"27352 920982.BJ 20260209\n",
"27353 920985.BJ 20260209\n",
"27354 920992.BJ 20260209\n",
"\n",
"[8679695 rows x 2 columns]\n",
"20260206\n",
"start_date: 20260209\n"
"[8707050 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,