Files
MoFin/clients/tdx-relay/tests/test_push.py
T
zhiwei 9b9c37002a Initial: MoFin 持仓分析与策略管理系统
核心模块:
- 策略生命周期管理 (strategy_lifecycle.py)
- 技术分析引擎 (technical_analysis.py)
- 双维度策略评估 (strategy_evaluator.py)
- 实时行情获取 (get_realtime_prices.py)
- Web Dashboard (server.py, :8899)

提示词版本管理:
- prompt_manager 模块 — 统一管理所有知微提示词
- 8个提示词共24个版本已录入
- 策略→提示词版本关联追踪
- Dashboard「提示词」Tab

数据源增强:
- 服务端 POST /api/update/realtime 端点已就绪
- clients/tdx-relay/ — 小小莫在Windows上开发的通达信中继
- 解决港股15分钟延迟问题
2026-06-12 22:54:51 +08:00

24 lines
572 B
Python

"""MoFin API 推送测试"""
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src"))
from relay.pusher import MoFinPusher
pusher = MoFinPusher()
result = pusher.push([{
"code": "00700",
"name": "腾讯控股",
"price": 463.6,
"change_pct": 1.55,
"high": 468.0,
"low": 460.2,
"open": 462.0,
"volume": 25000000,
"timestamp": "2026-06-12 14:30:00",
}])
print(f"推送结果: {result}")
if result.get("status") == "ok":
print("✅ 推送成功")
else:
print(f"❌ 失败: {result.get('message')}")