Skip to content

v1.5.0 — CLI for LLM Agents

Choose a tag to compare

@unohee unohee released this 21 Mar 06:34
· 165 commits to main since this release

kis CLI — 터미널에서 바로 한투 API

pip install kis-agent 후 kis 명령으로 즉시 사용 가능합니다.

kis price 005930                    # 삼성전자 현재가
kis overseas NAS AAPL               # AAPL 시세
kis balance --holdings              # 계좌 잔고
kis orderbook 005930                # 호가
kis schema Stock                    # 스키마 탐색 (LLM introspection)

New Features

CLI (kis command)

  • 7개 명령: price, balance, orderbook, overseas, futures, query, schema
  • LLM Agent 연동: JSON 출력 + 스키마 탐색으로 Claude, GPT 등 AI 에이전트 도구로 활용
  • 필드명 자동 변환: 한투 API 축약 필드(stck_prpr)를 LLM-friendly 이름(currentPrice)으로 변환
  • 휴장일 감지: 한투 API is_holiday로 주말 + 공휴일(추석, 설날, 대체공휴일 등) 자동 감지, 직전 영업일 데이터 안내

Auth & Stability

  • 예외 처리 개선 — 구체적 에러 타입 + 로깅 강화 (STO-770)
  • 해외주식 API 테스트 커버리지 추가 (INT-1218)

Breaking Changes

  • None

Install / Upgrade

pip install kis-agent==1.5.0

# 또는 최신 버전
pip install kis-agent --upgrade

PyPI Package