Some checks failed
CI / test (pull_request) Has been cancelled
Reduce RATE_LIMIT_RPS from 10.0 to 5.0 to prevent "초당 거래건수를 초과하였습니다" (EGW00201) errors from KIS API. Docker logs showed this was the most frequent error (70% of failures), occurring when multiple stocks are scanned rapidly. Changes: - src/config.py: RATE_LIMIT_RPS 10.0 → 5.0 - .env.example: Update default and add explanation comment Trade-off: Slower API throughput, but more reliable operation. Can be tuned per deployment via environment variable. Fixes: #43 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
37 lines
1000 B
Plaintext
37 lines
1000 B
Plaintext
# Korea Investment Securities API
|
|
KIS_APP_KEY=your_app_key_here
|
|
KIS_APP_SECRET=your_app_secret_here
|
|
KIS_ACCOUNT_NO=12345678-01
|
|
KIS_BASE_URL=https://openapivts.koreainvestment.com:9443
|
|
|
|
# Google Gemini
|
|
GEMINI_API_KEY=your_gemini_api_key_here
|
|
GEMINI_MODEL=gemini-pro
|
|
|
|
# Risk Management
|
|
CIRCUIT_BREAKER_PCT=-3.0
|
|
FAT_FINGER_PCT=30.0
|
|
CONFIDENCE_THRESHOLD=80
|
|
|
|
# Database
|
|
DB_PATH=data/trade_logs.db
|
|
|
|
# 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
|
|
|
|
# External Data APIs (optional — for enhanced decision-making)
|
|
# NEWS_API_KEY=your_news_api_key_here
|
|
# NEWS_API_PROVIDER=alphavantage
|
|
# MARKET_DATA_API_KEY=your_market_data_key_here
|
|
|
|
# Telegram Notifications (optional)
|
|
# Get bot token from @BotFather on Telegram
|
|
# Get chat ID from @userinfobot or your chat
|
|
# TELEGRAM_BOT_TOKEN=1234567890:ABCdefGHIjklMNOpqrsTUVwxyz
|
|
# TELEGRAM_CHAT_ID=123456789
|
|
# TELEGRAM_ENABLED=true
|