From 3ca68196b7593401b1af31fe3b1249fe3817882a Mon Sep 17 00:00:00 2001 From: baobao Date: Mon, 9 Nov 2026 12:13:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E5=8A=A8=E7=BD=91=E6=A0=BC=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=A1=A3=E8=B7=9D=E8=AF=BB=E5=8F=96=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/web/main.py | 3 ++- app/web/static/index.html | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/web/main.py b/app/web/main.py index 780a229..911bc45 100644 --- a/app/web/main.py +++ b/app/web/main.py @@ -1212,7 +1212,8 @@ def api_strategies(status: str = Query(None), include_archived: bool = Query(Fal return {"ok": True, "strategies": rows, "enabled": param_store.get_bool("PMS_STRATEGY_ENABLED", False), "auto": {"enabled": param_store.get_bool("PMS_AUTO_STRATEGY_ENABLED", False), - "ran_today": ran_today, "last_scan": last}} + "ran_today": ran_today, "last_scan": last, + "grid_step_pct": param_store.get_float("PMS_AUTO_GRID_STEP_PCT", 0.04)}} return ok(_load) diff --git a/app/web/static/index.html b/app/web/static/index.html index c81adf6..0eadf61 100644 --- a/app/web/static/index.html +++ b/app/web/static/index.html @@ -1642,7 +1642,7 @@ body.dock-r:not(.r-fold) .side-r .strip{display:none;} - 0.02 就是每 2% 一档 + 0.04 就是每 4% 一档 @@ -5156,7 +5156,7 @@ createApp({ price: px, total_qty: row.total_qty, avail_qty: row.avail_qty, cushion_pct: row.cushion_pct, type: 'T0', autonomy: 'auto', p: { t_ratio: 0.2, lower: +(px * 0.92).toFixed(2), upper: +(px * 1.08).toFixed(2), - center: px, step_pct: 0.04, per_lot: 100, max_capital: 0, + center: px, step_pct: Number((autoInfo.value || {}).grid_step_pct) || 0.04, per_lot: 100, max_capital: 0, start_line: 0.03, giveback: 0.05, sell_ratio: 1.0, hard_target: 0 } }); }