Files
MoFin/data/portfolio.json
T
知微 40d74f89ff feat: xmpp bot最终修复版+skill文档同步
xmpp_agent_core.py 当前工作配置记录:
1. send_presence() — presence = available, 否则私聊进离线
2. 入站消息队列(_inbound_queue) — 崩了不丢, 重试3次
3. 出站队列(_outbound_queue) — 崩了自动重启
4. XMPP心跳检测(xep_0199 ping) — run_filters死后15s内重连
5. 私聊回复双通道: send_message(指定resource) + send_stanza(裸JID)
6. AGENT_MENTION动态解析(群聊@知微识别)
7. session_id保持xmpp-zhiwei-v2不变(不因重启换session)
8. 断线重连2秒延迟(防资源冲突)
2026-06-26 23:17:21 +08:00

224 lines
5.0 KiB
JSON

{
"holdings": [
{
"code": "300308",
"name": "中际旭创",
"shares": 100,
"price": 1253.89,
"cost_price": 1316.53,
"currency": "CNY",
"market_val": 125389.0,
"cost_amount": 131653.33,
"exchange_rate": 0.8664
},
{
"code": "06869",
"name": "长飞光纤光缆",
"shares": 500,
"price": 250.6,
"cost_price": 263.69,
"currency": "HKD",
"market_val": 108722.81,
"cost_amount": 114403.43,
"exchange_rate": 0.8677
},
{
"code": "01478",
"name": "丘钛科技",
"shares": 11000,
"price": 6.86,
"cost_price": 13.46,
"currency": "HKD",
"market_val": 65476.64,
"cost_amount": 128509.38,
"exchange_rate": 0.8677
},
{
"code": "601899",
"name": "XD紫金矿",
"shares": 2400,
"price": 25.1,
"cost_price": 39.89,
"currency": "CNY",
"market_val": 60240.0,
"cost_amount": 95732.29,
"exchange_rate": 0.8664
},
{
"code": "688411",
"name": "海博思创",
"shares": 200,
"price": 258.88,
"cost_price": 266.95,
"currency": "CNY",
"market_val": 51776.0,
"cost_amount": 53389.21,
"exchange_rate": 0.8664
},
{
"code": "688981",
"name": "中芯国际",
"shares": 300,
"price": 148.76,
"cost_price": 126.07,
"currency": "CNY",
"market_val": 44628.0,
"cost_amount": 37820.42,
"exchange_rate": 0.8664
},
{
"code": "688639",
"name": "华恒生物",
"shares": 2800,
"price": 15.4,
"cost_price": 21.51,
"currency": "CNY",
"market_val": 43120.0,
"cost_amount": 60223.75,
"exchange_rate": 0.8664
},
{
"code": "01888",
"name": "建滔积层板",
"shares": 500,
"price": 98.55,
"cost_price": 88.22,
"currency": "HKD",
"market_val": 42755.92,
"cost_amount": 38275.35,
"exchange_rate": 0.8677
},
{
"code": "300750",
"name": "宁德时代",
"shares": 100,
"price": 381.0,
"cost_price": 401.78,
"currency": "CNY",
"market_val": 38100.0,
"cost_amount": 40178.03,
"exchange_rate": 0.8664
},
{
"code": "01211",
"name": "比亚迪股份",
"shares": 600,
"price": 72.65,
"cost_price": 104.86,
"currency": "HKD",
"market_val": 37823.04,
"cost_amount": 54592.42,
"exchange_rate": 0.8677
},
{
"code": "02202",
"name": "万科企业",
"shares": 19700,
"price": 2.2,
"cost_price": 4.67,
"currency": "HKD",
"market_val": 37606.12,
"cost_amount": 79782.13,
"exchange_rate": 0.8677
},
{
"code": "00700",
"name": "腾讯控股",
"shares": 100,
"price": 411.8,
"cost_price": 443.08,
"currency": "HKD",
"market_val": 35731.89,
"cost_amount": 38446.39,
"exchange_rate": 0.8677
},
{
"code": "00981",
"name": "中芯国际",
"shares": 500,
"price": 80.0,
"cost_price": 75.93,
"currency": "HKD",
"market_val": 34708.0,
"cost_amount": 32943.17,
"exchange_rate": 0.8677
},
{
"code": "300548",
"name": "长芯博创",
"shares": 100,
"price": 262.65,
"cost_price": 231.46,
"currency": "CNY",
"market_val": 26265.0,
"cost_amount": 23146.0,
"exchange_rate": 0.8664
},
{
"code": "518880",
"name": "黄金ETF华安",
"shares": 2400,
"price": 8.39,
"cost_price": 12.19,
"currency": "CNY",
"market_val": 20136.0,
"cost_amount": 29259.64,
"exchange_rate": 0.8664
},
{
"code": "300035",
"name": "中科电气",
"shares": 1400,
"price": 14.19,
"cost_price": 22.29,
"currency": "CNY",
"market_val": 19866.0,
"cost_amount": 31207.91,
"exchange_rate": 0.8664
},
{
"code": "000700",
"name": "模塑科技",
"shares": 1400,
"price": 14.13,
"cost_price": 14.83,
"currency": "CNY",
"market_val": 19782.0,
"cost_amount": 20767.0,
"exchange_rate": 0.8664
},
{
"code": "600563",
"name": "法拉电子",
"shares": 100,
"price": 188.76,
"cost_price": 147.18,
"currency": "CNY",
"market_val": 18876.0,
"cost_amount": 14718.0,
"exchange_rate": 0.8664
},
{
"code": "01088",
"name": "中国神华",
"shares": 500,
"price": 40.62,
"cost_price": 45.89,
"currency": "HKD",
"market_val": 17622.99,
"cost_amount": 19909.06,
"exchange_rate": 0.8677
}
],
"cash": 22932.0,
"cash_available": 22932.21,
"cash_frozen": 90308.04,
"total_market_value": 848625,
"total_assets": 961866.0,
"today_pl": -52416.43,
"today_pl_pct": -5.45,
"total_pl": -214878.85,
"position_pct": 88.23,
"updated_at": "2026-06-26 23:05",
"source": "/home/hmo/stocks/holding.xls"
}