diff --git a/src/gas_adapter_parts/gdc_02_account_satellite.gs b/src/gas_adapter_parts/gdc_02_account_satellite.gs index 8b94192..3417b35 100644 --- a/src/gas_adapter_parts/gdc_02_account_satellite.gs +++ b/src/gas_adapter_parts/gdc_02_account_satellite.gs @@ -685,7 +685,12 @@ function _addTickerRoute_(ctx) { ? posRec.available_quantity : heldQty; return Math.max(1, Math.min(Math.round(heldQty * sellRatioPct / 100), availQty)); })(); - const ruleSellQty = ""; + const ruleSellQty = (() => { + const heldQty = Number.isFinite(accountHoldingQty) ? accountHoldingQty : 0; + if (heldQty <= 0 || !sellRatioPct) return ""; + const calc = Math.floor(heldQty * sellRatioPct / 100); + return calc > 0 ? calc : ""; + })(); // ── Allowed_Action ─────────────────────────────────────────────────── // 우선순위: 데이터 품질 → HF005 → DART → 유동성 → REGIME매수차단 → RW청산 → SS001