# koreainvestment/open-trading-api

Korea Investment & Securities Open API Github

Repository: https://github.com/koreainvestment/open-trading-api
Canonical: https://ross.abutalabs.com/products/open-trading-api
Homepage: https://apiportal.koreainvestment.com
Language: Python
License Family: other
Topics: ai-trading, api-samples, autotrade, chatgpt, claude, finance, investment, koreainvestment, llm, openapi, python, realtime, rest-api, stock-trading, stocks, trading, trading-api, websocket, open-trading-api, mcp
Last push: 2026-08-26T06:39:56+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 1608, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1584, forks 818 (observed 2026-08-28T04:05:07.361570+00:00)

## What it is
Official sample code repository from Korea Investment & Securities for their Open Trading API (KIS Developers), providing Python examples for REST and WebSocket access to domestic/overseas stocks, bonds, futures, options, and ETFs. It includes LLM-organized example code, a visual strategy builder, a backtesting engine, and MCP tooling so both human developers and AI agents can build automated trading workflows.

## Use cases
- build an automated stock trading bot with Korea Investment Securities API
- fetch real-time stock prices via websocket in Python
- place buy and sell orders for Korean and overseas stocks programmatically
- let ChatGPT or Claude call brokerage trading APIs via MCP
- backtest a trading strategy on historical market data
- get access token authentication for KIS Open API
- query bond, ETF, and futures prices from a brokerage

## When to choose
- you have a Korea Investment & Securities account and API keys
- you want official, maintained Python examples for KIS Developers endpoints
- you want LLM/AI-agent-friendly code structure or MCP integration for trading
- you need both REST and WebSocket examples across many asset classes

## When to avoid
- you trade with a different broker whose API this does not wrap
- you need a production-grade trading framework with guaranteed support - samples are reference code with no warranty
- you need a permissively licensed library - the repo has no explicit license

## Facets
- artifact type: library
- maturity: active
- function: http-client, websocket, sdk, trading, auth, mcp
- domain: fintech, apis, developer-tools, artificial-intelligence, large-language-models
- platform: python, cross-platform
- tags: korea-investment-securities, kis-open-api, stock-trading, sample-code, llm-friendly, algorithmic-trading, backtesting, strategy-builder, rest-api, korean-stock-market

## Member repositories
- koreainvestment/open-trading-api (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:07.361570+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:55:57.870951+00:00, confidence not recorded.
  - readme: https://github.com/koreainvestment/open-trading-api (fetched 2026-08-28T04:05:07.361570+00:00, sha 47b74eb60873)
  - homepage: https://apiportal.koreainvestment.com (fetched 2026-08-29T11:27:02.580556+00:00, sha 0e79aade0882)
  - site_page: https://apiportal.koreainvestment.com/about-devcenter (fetched 2026-08-29T11:27:02.589747+00:00, sha ddf26e7c7ad9)
  - site_page: https://apiportal.koreainvestment.com/about-open-api (fetched 2026-08-29T11:27:02.591523+00:00, sha 3f2a8f86d16c)
  - site_page: https://apiportal.koreainvestment.com/about-howto (fetched 2026-08-29T11:27:02.593508+00:00, sha fd23d7e24024)
  - site_page: https://apiportal.koreainvestment.com/about (fetched 2026-08-29T11:27:02.600391+00:00, sha ddf26e7c7ad9)
  - site_page: https://apiportal.koreainvestment.com/provider-faq (fetched 2026-08-29T11:27:02.595315+00:00, sha 4446c6a2e2cc)
  - site_page: https://apiportal.koreainvestment.com/faq-faq (fetched 2026-08-29T11:27:02.597095+00:00, sha 3e3541a47d72)
  - site_page: https://apiportal.koreainvestment.com/faq-error-code (fetched 2026-08-29T11:27:02.598790+00:00, sha 368374eb1a6b)
  - site_page: https://apiportal.koreainvestment.com/faq (fetched 2026-08-29T11:27:02.602058+00:00, sha 3e3541a47d72)
- Data as of 2026-08-30T08:39:29.467469+00:00.
