한국투자증권 OpenAPI Python 래퍼 — CLI · Python SDK · LLM Agent · 실시간 WebSocket. 문서: unohee.github.io/kis-agent
README
한국투자증권 OpenAPI Python 래퍼 - Korea Investment & Securities Trading API Client
pip install kis-agent
📖 공식 문서: unohee.github.io/kis-agent — 설치, 빠른 시작, CLI · Python API 레퍼런스, LLM Agent · MCP 연동, 아키텍처 가이드.
pip install kis-agent 하면 kis 명령이 바로 설치됩니다.
kis price 005930 # 삼성전자 현재가
kis price 005930 --daily --days 5 # 일별 시세 5일
kis overseas NAS AAPL # AAPL 시세
kis overseas NAS AAPL --detail # PER/PBR/시총 포함
kis balance --holdings # 계좌 잔고 + 보유종목
kis orderbook 005930 # 호가 10호가
kis futures 101S03 # 선물 시세
kis trades # 당일 체결내역
kis trades --from 7d --pretty # 최근 7일 (사람 읽기용)
kis trades --from 30d --sell # 최근 30일 매도만
kis trades --from 3m --profit # 기간별 실현손익
kis query stock get_stock_price code=005930 # API 직접 호출
kis schema Stock # 타입 스키마 (LLM introspection)
--pretty로 사람 읽기용stck_prpr → currentPrice, prdy_ctrt → changeRate