# ========================================
# Polymarket Sniper Bot - Configuration
# ========================================

# Polymarket API (Required)
# ------------------------------
PRIVATE_KEY=
PROXY_WALLET=
POLY_API_KEY=
POLY_API_SECRET=
POLY_API_PASSPHRASE=
SIGNER_TYPE=2

# ------------------------------
# Trading Parameters

#同PROXY_WALLET的值/same value as your unique PROXY_WALLET
SKILLPAY_USER_ID=

# 每次交易的美元金额（默认 1.0）
TRADE_AMOUNT_USD=1.0
MIN_ORDERBOOK_SIZE=1.0
SLIPPAGE_TOLERANCE=0.15
ENTRY_THRESHOLD=0.35
# 单笔最大成本限制（必须 >= TRADE_AMOUNT_USD）
MAX_COST_PER_TRADE=1.2

# ------------------------------
# Time Windows (Local Time)
# ------------------------------
MONITOR_START_HOUR=9
MONITOR_END_HOUR=9.9167
FALLBACK_START_HOUR=10
FALLBACK_WINDOW_MINUTES=5

# ------------------------------
# Execution Intervals (Seconds)
# ------------------------------
CHECK_INTERVAL=300
REPORT_INTERVAL=240

# ------------------------------
# Cache TTLs (Seconds)
# ------------------------------
CACHE_TTL=3600
GAMMA_CACHE_TTL=300
CLOB_CACHE_TTL=30

# ------------------------------
# Rate Limiting
# ------------------------------
MAX_CONCURRENT_REQUESTS=50
REQUEST_DELAY=0.05
RETRY_BACKOFF_BASE=0.5
MAX_RETRIES=3
RETRY_DELAY=1.0

# ------------------------------
# Paths
# ------------------------------
STATE_FILE=state.json
CACHE_DIR=cache
