chore: 更新 .env.example 文件,调整 Maker 策略的损失限制参数以优化风险管理

This commit is contained in:
discountry
2025-10-03 01:34:32 +08:00
parent 9124c06315
commit abb56b917a
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -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)
+5 -1
View File
@@ -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(