Configurable scan interval via SCAN_INTERVAL_MS env var
- Add SCAN_INTERVAL_MS env var support in config.go (code default 500ms) - Set to 200ms in .env for tighter opportunity detection
This commit is contained in:
@@ -63,7 +63,7 @@ func LoadConfig() *Config {
|
|||||||
TelegramChatID: getEnv("TELEGRAM_CHAT_ID", ""),
|
TelegramChatID: getEnv("TELEGRAM_CHAT_ID", ""),
|
||||||
AlertCooldownSec: 300,
|
AlertCooldownSec: 300,
|
||||||
ArbThreshold: 0.03,
|
ArbThreshold: 0.03,
|
||||||
ScanIntervalMs: 500,
|
ScanIntervalMs: int(getFloat("SCAN_INTERVAL_MS", 500)),
|
||||||
|
|
||||||
TradeEnabled: getBool("TRADE_ENABLED", false),
|
TradeEnabled: getBool("TRADE_ENABLED", false),
|
||||||
TradeThreshold: getFloat("TRADE_THRESHOLD", 0.15),
|
TradeThreshold: getFloat("TRADE_THRESHOLD", 0.15),
|
||||||
|
|||||||
Reference in New Issue
Block a user