From abb56b917a560f2d854d747e2ee5709754e4fd21 Mon Sep 17 00:00:00 2001 From: discountry Date: Fri, 3 Oct 2025 01:34:32 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=20.env.example=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=EF=BC=8C=E8=B0=83=E6=95=B4=20Maker=20?= =?UTF-8?q?=E7=AD=96=E7=95=A5=E7=9A=84=E6=8D=9F=E5=A4=B1=E9=99=90=E5=88=B6?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E4=BB=A5=E4=BC=98=E5=8C=96=E9=A3=8E=E9=99=A9?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 2 +- src/exchanges/grvt/gateway.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index b9fc201..95a7ba2 100644 --- a/.env.example +++ b/.env.example @@ -30,7 +30,7 @@ KLINE_INTERVAL=1m # Kline interval (e.g., 1m/3m/5m) MAX_CLOSE_SLIPPAGE_PCT=0.05 # Max allowed deviation vs mark when closing (0.05 => 5%) # Maker-only settings -MAKER_LOSS_LIMIT=0.03 # Maker loss cap (USDT). Defaults to LOSS_LIMIT if unset +MAKER_LOSS_LIMIT=0.05 # Maker loss cap (USDT). Defaults to LOSS_LIMIT if unset MAKER_BID_OFFSET=0 # Bid quote offset from top bid (USDT) MAKER_ASK_OFFSET=0 # Ask quote offset from top ask (USDT) MAKER_REFRESH_INTERVAL_MS=1500 # Maker refresh cadence (ms) diff --git a/src/exchanges/grvt/gateway.ts b/src/exchanges/grvt/gateway.ts index 7b94df0..fe38376 100644 --- a/src/exchanges/grvt/gateway.ts +++ b/src/exchanges/grvt/gateway.ts @@ -840,7 +840,11 @@ function normalizeCookieValue(value: string): string { } function defaultLogger(context: string, error: unknown): void { - console.error(`[GrvtGateway] ${context} failed`, error); + // Suppress direct console output from GRVT gateway. Strategy layers already + // record failures into the recent events trade log as warnings. + // Intentionally no-op to avoid noisy CLI logs. + void context; + void error; } function parseSetCookieHeader(