"""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')}")