Skip to main content

KISPilot

한국투자증권 Open API를 AI 에이전트(MCP) 와 웹 콘솔에서 쓰기 위한 도구 모음입니다.

비공식 프로젝트입니다. 한국투자증권과 관계가 없으며, 한국투자증권이 만들거나 검증하지 않았습니다. 이 소프트웨어는 투자 조언이 아니며, 주문·백테스트 결과로 생긴 손실에 대해 책임지지 않습니다 (MIT 라이선스, 무보증). 실전 계좌로 쓰기 전에 모의투자로 충분히 확인하세요.

할 수 있는 것

  • 조회 — 시세·호가·체결, 투자자·수급, 재무, 순위, 업종·지수, ETF, 계좌 잔고·손익 (KIS API 80여 개)
  • 선물·옵션 — KOSPI200 선물·옵션(미니·위클리 포함) 주간·야간 전광판, 실시간 호가·체결, 차트
  • 주문 — 현금·신용·예약 주문, 정정·취소 (에이전트는 모의투자가 기본, 실전은 2단계 확인)
  • 차트 — 1분~년봉, 이동평균·볼린저·일목균형표 등 지표, 보조 차트 30여 종
  • 백테스트 — 기본 전략 11종 + 지표 157개로 만드는 커스텀 전략, 여러 전략 비교, 여러 종목 포트폴리오
  • 실시간 — KIS 웹소켓 체결·호가 (웹 콘솔)

빠른 시작

Python 3.11 이상이 필요합니다.

1. 설치

uv tool install kispilot      # 또는: pipx install kispilot / pip install kispilot

2. 키 등록 (처음 한 번) — KIS Developers에서 앱키·앱시크릿을 발급받은 뒤:

kispilot setup        # 실전 / 모의투자 / 둘 다 선택 → 앱키·시크릿·계좌 입력

앱키는 OS 키체인에 저장됩니다. 키를 AI 채팅창에 붙여넣지 마세요.

3. 쓰는 방법 고르기

이렇게 쓰려면 실행
웹 화면에서 직접 보기 kispilot ui → http://127.0.0.1:8000
Claude 등 AI 에이전트에게 맡기기 kispilot install claude-desktop (Claude Code · Cursor · VS Code · Gemini CLI · Codex 도 지원) 후 앱 다시 시작

안내 문서

문서 이럴 때 보세요
설치 · 키 등록 업데이트·삭제, 소스 설치, 서버처럼 키체인이 없는 환경, 데이터 저장 위치
웹 콘솔 화면마다 무엇을 볼 수 있는지, 다른 기기에서 접속하기
선물 · 옵션 KOSPI200 선물·옵션 전광판, 주간/야간, 알아 둘 점
AI 에이전트 (MCP) 클라이언트별 등록, 도구·프롬프트 목록, 직접 설정, 주문 안전장치

버전별 변경 내용은 Releases 에 있습니다.

데이터 출처 · 참고

라이선스

MIT

Metadata

Release files for kispilot 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kispilot 0.2.1
File Size Uploaded
kispilot-0.2.1.tar.gz 310.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kispilot 0.2.1
File Interpreter ABI Platform
kispilot-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 829.6 kB

Release files / kispilot-0.2.1.tar.gz

Download URL kispilot-0.2.1.tar.gz
Size 310.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fc3b44d93f3be14beda643b88285b7d228d6791538bb3dfb373790fa52bbc61e
BLAKE2b-256 checksum
How to use checksums
36bac763ca0d4f3b76029c3b5b89146265e8de6efe1720de726bb9a705a7c6f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / kispilot-0.2.1-py3-none-any.whl

Download URL kispilot-0.2.1-py3-none-any.whl
Size 519.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ab5ea0630975479abfea24b0f59c42ed6ed003f1c41712b47d94b6e33056888
BLAKE2b-256 checksum
How to use checksums
e61c0509cdab3d0e5ee52bd0a433d5db728f78739786258f0f4ba25e6102bb5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page