mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-09 08:18:07 +00:00
chore: 更新 .env.example 文件,调整 Maker 策略的损失限制参数以优化风险管理
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user