diff --git a/.env.example b/.env.example index cc2ffb0..ac91c53 100644 --- a/.env.example +++ b/.env.example @@ -16,8 +16,9 @@ CONFIDENCE_THRESHOLD=80 # Database DB_PATH=data/trade_logs.db -# Rate Limiting -RATE_LIMIT_RPS=10.0 +# Rate Limiting (requests per second for KIS API) +# Reduced to 5.0 to avoid "초당 거래건수 초과" errors (EGW00201) +RATE_LIMIT_RPS=5.0 # Trading Mode (paper / live) MODE=paper diff --git a/src/config.py b/src/config.py index 222afd0..2999f39 100644 --- a/src/config.py +++ b/src/config.py @@ -37,7 +37,8 @@ class Settings(BaseSettings): DB_PATH: str = "data/trade_logs.db" # Rate Limiting (requests per second for KIS API) - RATE_LIMIT_RPS: float = 10.0 + # Reduced to 5.0 to avoid EGW00201 "초당 거래건수 초과" errors + RATE_LIMIT_RPS: float = 5.0 # Trading mode MODE: str = Field(default="paper", pattern="^(paper|live)$")