[2026-05-15] rate limit·전일데이터·TR ID 등 버그 수정
- main.py: sleep 0.05/0.1 → 1.1초 (KIS rate limit 준수) - main.py: 전일 날짜 계산 수정 (월요일→금요일), 인라인 주석 env 파싱, 장 중 재시작 즉시 루프 진입 - strategy/volatility_breakout.py: has_prev_data() 추가, 중복 수집 skip - db/repository.py, order_executor.py: UPDATE ORDER BY → 서브쿼리 수정 (SQLite 호환) - kis_client.py: get_balance TR ID VTTC8001R → VTTC8434R - test_connection.py: API 호출 간 sleep 추가 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -43,6 +43,8 @@ async def test_connection():
|
||||
print(" → .env의 KIS 키를 확인해주세요")
|
||||
return
|
||||
|
||||
await asyncio.sleep(0.5)
|
||||
|
||||
# ── 2. 삼성전자 현재가 ──
|
||||
print("\n[2] 삼성전자(005930) 현재가 조회...")
|
||||
try:
|
||||
@@ -53,6 +55,8 @@ async def test_connection():
|
||||
except Exception as e:
|
||||
print(f" ❌ 실패: {e}")
|
||||
|
||||
await asyncio.sleep(0.5)
|
||||
|
||||
# ── 3. 잔고 조회 ──
|
||||
print("\n[3] 계좌 잔고 조회...")
|
||||
try:
|
||||
@@ -66,6 +70,8 @@ async def test_connection():
|
||||
except Exception as e:
|
||||
print(f" ❌ 실패: {e}")
|
||||
|
||||
await asyncio.sleep(0.5)
|
||||
|
||||
# ── 4. 거래량 순위 ──
|
||||
print("\n[4] 거래량 순위 상위 5종목...")
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user