What is 한국투자증권 REST API MCP (Model Context Protocol)?
한국투자증권 REST API MCP (Model Context Protocol) is a server that uses the Korea Investment & Securities (KIS) REST API to provide stock trading and market data inquiry via the Model Context Protocol. It supports domestic and overseas stock trading, price checks, account management, and is intended for developers building AI‑assisted trading tools.
How to use 한국투자증권 REST API MCP (Model Context Protocol)?
Install Python 3.13+ and uv, then create a virtual environment and install dependencies with uv pip install -e .. Set the environment variables KIS_APP_KEY, KIS_APP_SECRET, KIS_ACCOUNT_TYPE, and KIS_CANO with your KIS API credentials. The server exposes MCP tools such as inquery_stock_price, order_stock, inquery_balance, order_overseas_stock, and others for trading and data retrieval.
Key features of 한국투자증권 REST API MCP (Model Context Protocol)
- 🇰🇷 Domestic stock trading: price, orders, balance, ask prices, order history
- 🌏 Overseas stock trading: US, Japan, China, Hong Kong, Vietnam
- Real‑time price and execution information
- Asynchronous processing for fast responses
- Reliable error handling and extensible design
- Environment‑variable configuration for API keys and account
Use cases of 한국투자증권 REST API MCP (Model Context Protocol)
- Automate domestic stock buy/sell orders via AI agents
- Retrieve real‑time overseas stock prices for portfolio monitoring
- Check account balance and profit/loss status programmatically
- Inquire daily order history and order details for reconciliation
- Fetch ask price (bid/ask depth) for trading decisions
评论