fix(bot): 防递归重连 guard - 防止 on_disconnect → reconnect → disconnect 无限递归导致栈溢出

This commit is contained in:
知微
2026-07-19 20:59:18 +08:00
parent 81c6dd2314
commit e366a6359a
43 changed files with 7668 additions and 1988 deletions
+190
View File
@@ -0,0 +1,190 @@
{
"holdings": [
{
"code": "518880",
"name": "黄金ETF华安",
"shares": 2400,
"cost": 12.1915,
"position_pct": null,
"added_at": "2026-07-17",
"is_active": 1,
"closed_at": null,
"close_pnl": null,
"price": 8.29,
"market_value": 19862.4,
"change_pct": -0.85,
"currency": "CNY"
},
{
"code": "601899",
"name": "紫金矿业",
"shares": 2400,
"cost": 39.8885,
"position_pct": null,
"added_at": "2026-07-17",
"is_active": 1,
"closed_at": null,
"close_pnl": null,
"price": 28.38,
"market_value": 68184.0,
"change_pct": -2.97,
"currency": "CNY"
},
{
"code": "688411",
"name": "海博思创",
"shares": 200,
"cost": 266.9461,
"position_pct": null,
"added_at": "2026-07-17",
"is_active": 1,
"closed_at": null,
"close_pnl": null,
"price": 184.26,
"market_value": 37048.0,
"change_pct": -4.97,
"currency": "CNY"
},
{
"code": "688639",
"name": "华恒生物",
"shares": 2800,
"cost": 21.5085,
"position_pct": null,
"added_at": "2026-07-17",
"is_active": 1,
"closed_at": null,
"close_pnl": null,
"price": 16.47,
"market_value": 46480.0,
"change_pct": -4.19,
"currency": "CNY"
},
{
"code": "688981",
"name": "中芯国际",
"shares": 300,
"cost": 126.0681,
"position_pct": null,
"added_at": "2026-07-17",
"is_active": 1,
"closed_at": null,
"close_pnl": null,
"price": 144.84,
"market_value": 44436.0,
"change_pct": -4.58,
"currency": "CNY"
},
{
"code": "000850",
"name": "华茂股份",
"shares": 20400,
"cost": 3.9408,
"position_pct": null,
"added_at": "2026-07-17",
"is_active": 1,
"closed_at": null,
"close_pnl": null,
"price": 4.09,
"market_value": 83232.0,
"change_pct": 0.25,
"currency": "CNY"
},
{
"code": "300035",
"name": "中科电气",
"shares": 1400,
"cost": 22.2914,
"position_pct": null,
"added_at": "2026-07-17",
"is_active": 1,
"closed_at": null,
"close_pnl": null,
"price": 12.31,
"market_value": 18116.0,
"change_pct": -1.44,
"currency": "CNY"
},
{
"code": "00700",
"name": "腾讯控股",
"shares": 100,
"cost": 445.2906,
"position_pct": null,
"added_at": "2026-07-17",
"is_active": 1,
"closed_at": null,
"close_pnl": null,
"price": 461.0,
"market_value": 39837.28,
"change_pct": -4.75,
"currency": "CNY"
},
{
"code": "01088",
"name": "中国神华",
"shares": 500,
"cost": 46.1178,
"position_pct": null,
"added_at": "2026-07-17",
"is_active": 1,
"closed_at": null,
"close_pnl": null,
"price": 41.62,
"market_value": 18114.13,
"change_pct": -0.62,
"currency": "CNY"
},
{
"code": "01211",
"name": "比亚迪股份",
"shares": 600,
"cost": 105.3827,
"position_pct": null,
"added_at": "2026-07-17",
"is_active": 1,
"closed_at": null,
"close_pnl": null,
"price": 87.6,
"market_value": 45328.5,
"change_pct": -3.68,
"currency": "CNY"
},
{
"code": "01478",
"name": "丘钛科技",
"shares": 11000,
"cost": 13.531,
"position_pct": null,
"added_at": "2026-07-17",
"is_active": 1,
"closed_at": null,
"close_pnl": null,
"price": 6.56,
"market_value": 62967.76,
"change_pct": -6.42,
"currency": "CNY"
},
{
"code": "02202",
"name": "万科企业",
"shares": 19700,
"cost": 4.6906,
"position_pct": null,
"added_at": "2026-07-17",
"is_active": 1,
"closed_at": null,
"close_pnl": null,
"price": 2.36,
"market_value": 40141.19,
"change_pct": -5.98,
"currency": "CNY"
}
],
"cash": 321271.0,
"frozen_cash": 0.0,
"total_market_value": 521073.53,
"total_assets": 842344.53,
"position_pct": 61.86,
"updated_at": "2026-07-17 14:08:07"
}