About Open Trading API
Open Trading API is an MCP server published by koreainvestment in the Developer Tools category: korea Investment & Securities Open API Github. Conduid read 20 tools from its source: get_backtest_result_tool, get_preset_yaml_tool, get_report_tool, list_indicators_tool, list_presets_tool, optimize_strategy_tool and 14 more. No package is published for it, so it installs from a source checkout.
The repository has 1.7K stars and 846 forks, and its last commit was on 30 Nov 2026. Conduid has no tagged release on record for it. It passes 2 of the 6 static checks Conduid ran on the repository; it does not pass License declared, Tests present, No dynamic code execution and Scoped permissions. Its topics include finance, koreainvestment, ai-trading, devtools, investment and api-samples.
Install
git clone https://github.com/koreainvestment/open-trading-apiTools (20)
get_backtest_result_tool백테스트 결과를 조회합니다.| Parameter | Type | Description |
|---|---|---|
| job_id * | string | run_backtest_tool / run_preset_backtest_tool 반환값의 job_id |
| timeout | number | 최대 대기 시간 (초, 기본 300초=5분). wait=True일 때만 적용 |
| wait | boolean | True(기본)면 완료까지 대기, False면 즉시 현재 상태 반환 |
get_preset_yaml_tool프리셋 전략을 .kis.yaml 문자열로 반환합니다.| Parameter | Type | Description |
|---|---|---|
| param_overrides | object | 파라미터 오버라이드 (예: {"period": 21, "oversold": 25}) |
| strategy_id * | string | 전략 ID (예: sma_crossover, momentum, trend_filter_signal) |
get_report_tool백테스트 리포트를 생성합니다.| Parameter | Type | Description |
|---|---|---|
| format | string | "json" (핵심 지표 요약) 또는 "html" (전체 HTML 리포트 파일 경로) |
| job_id * | string | 완료된 백테스트의 job_id |
list_indicators_tool지원하는 기술적 지표 목록과 파라미터 정의를 반환합니다 (70개+).list_presets_tool10개 프리셋 전략 목록과 파라미터 정의를 반환합니다.optimize_strategy_tool전략 파라미터 최적화를 시작합니다 (비동기 — 즉시 job_id 반환).| Parameter | Type | Description |
|---|---|---|
| commission_rate | number | 수수료율 |
| end_date | string | 종료일 YYYY-MM-DD (기본: 오늘) |
| initial_capital | number | 초기 자본금 (원, 기본 1,000만) |
| max_samples | integer | random search 최대 샘플 수 (기본 20) |
| parameters * | array | 파라미터 정의 리스트. 예: [{"name": "fast_period", "min": 5, "max": 20, "step": 5}, {"name": "slow_period", "min": 20, "max": 60, "step": 10}] |
| search_type | string | "grid" (전체 탐색) 또는 "random" (무작위 샘플링) |
| seed | integer | random search 재현성 시드 |
| slippage | number | 슬리피지 (기본 0%, 0.001=0.1%로 설정 시 KRXSlippageModel 적용) |
| start_date | string | 시작일 YYYY-MM-DD (기본: 1년 전) |
| strategy_id * | string | 전략 ID (예: "sma_crossover", "golden_cross") |
| symbols * | array | 종목 코드 리스트 (예: ["005930"]) |
| target | string | 최적화 목표 ("sharpe_ratio" | "total_return" | "max_drawdown" | "win_rate") |
| tax_rate | number | 세율 |
read_source_codeAPI 검색 결과의 URL에서 실제 GitHub 코드를 가져옵니다. 파라미터: - url_main: 메인 호출 파일 URL (필수) - url_chk: 테스트 호출 파일 URL (선택) 사용 예시: 1. api_search tool로 원하는 API를 찾습니다 2. 검색 결과에서 url_main, url_chk를 확인합니다 3. 이 tool을 사용해서 실제 GitHub 코드를 가져옵니다| Parameter | Type | Description |
|---|---|---|
| url_chk | string | |
| url_main * | string |
retry_backtest_tool실패한 백테스트를 재시도합니다.| Parameter | Type | Description |
|---|---|---|
| job_id * | string | 실패한 run_backtest_tool / run_preset_backtest_tool 의 job_id |
run_backtest_toolYAML 전략을 백테스트합니다 (비동기 — 즉시 job_id 반환).| Parameter | Type | Description |
|---|---|---|
| commission_rate | number | 수수료율 (기본 0.015%) |
| end_date | string | 종료일 YYYY-MM-DD (기본: 오늘) |
| initial_capital | number | 초기 자본금 (원, 기본 1,000만) |
| slippage | number | 슬리피지 (기본 0%, 0.001=0.1%로 설정 시 KRXSlippageModel 적용) |
| start_date | string | 시작일 YYYY-MM-DD (기본: 1년 전) |
| symbols * | array | 종목 코드 리스트 (예: ["005930", "000660"]) |
| tax_rate | number | 거래세율 (기본 0.2%) |
| yaml_content * | string | .kis.yaml 포맷 전략 문자열 |
run_batch_backtest_tool여러 전략을 동시에 백테스트하고 비교 결과를 반환합니다.| Parameter | Type | Description |
|---|---|---|
| commission_rate | number | 공통 수수료율 |
| end_date | string | 공통 종료일 YYYY-MM-DD (기본: 오늘) |
| initial_capital | number | 공통 초기 자본금 (원, 기본 1,000만) |
| items * | array | 전략 목록. 각 항목에 다음 키 포함: - {"strategy_id": "sma_crossover", "symbols": ["005930"], "param_overrides": {...}} - {"yaml_content": "...", "symbols": ["000660"]} |
| start_date | string | 공통 시작일 YYYY-MM-DD (기본: 1년 전) |
| tax_rate | number | 공통 세율 |
run_preset_backtest_tool프리셋 전략을 백테스트합니다 (비동기 — 즉시 job_id 반환).| Parameter | Type | Description |
|---|---|---|
| commission_rate | number | 수수료율 |
| end_date | string | 종료일 YYYY-MM-DD (기본: 오늘) |
| initial_capital | number | 초기 자본금 (원, 기본 1,000만) |
| param_overrides | object | 파라미터 오버라이드 (예: {"period": 21}) |
| slippage | number | 슬리피지 (기본 0%, 0.001=0.1%로 설정 시 KRXSlippageModel 적용) |
| start_date | string | 시작일 YYYY-MM-DD (기본: 1년 전) |
| strategy_id * | string | 전략 ID (예: sma_crossover, momentum, trend_filter_signal) |
| symbols * | array | 종목 코드 리스트 (예: ["005930"]) |
| tax_rate | number | 거래세율 |
search_auth_api| Parameter | Type | Description |
|---|---|---|
| api_name | string | |
| description | string | |
| function_name | string | |
| query | string | |
| response | string | |
| subcategory | string |
search_domestic_bond_api| Parameter | Type | Description |
|---|---|---|
| api_name | string | |
| description | string | |
| function_name | string | |
| query | string | |
| response | string | |
| subcategory | string |
search_domestic_futureoption_api| Parameter | Type | Description |
|---|---|---|
| api_name | string | |
| description | string | |
| function_name | string | |
| query | string | |
| response | string | |
| subcategory | string |
search_domestic_stock_api| Parameter | Type | Description |
|---|---|---|
| api_name | string | |
| description | string | |
| function_name | string | |
| query | string | |
| response | string | |
| subcategory | string |
search_elw_api| Parameter | Type | Description |
|---|---|---|
| api_name | string | |
| description | string | |
| function_name | string | |
| query | string | |
| response | string | |
| subcategory | string |
search_etfetn_api| Parameter | Type | Description |
|---|---|---|
| api_name | string | |
| description | string | |
| function_name | string | |
| query | string | |
| response | string | |
| subcategory | string |
search_overseas_futureoption_api| Parameter | Type | Description |
|---|---|---|
| api_name | string | |
| description | string | |
| function_name | string | |
| query | string | |
| response | string | |
| subcategory | string |
search_overseas_stock_api| Parameter | Type | Description |
|---|---|---|
| api_name | string | |
| description | string | |
| function_name | string | |
| query | string | |
| response | string | |
| subcategory | string |
validate_yaml_toolYAML 전략 문자열의 유효성을 검증합니다.| Parameter | Type | Description |
|---|---|---|
| yaml_content * | string | .kis.yaml 포맷 전략 문자열 |
Security checks
Static checks derived from the repository 5 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.0K words.
- !License declaredNo license file. Legally you have no right to use it in a product.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock and 4 more.
- !No dynamic code executionScanned 1.0K source files and found 20 calls to eval or shell execution, in MCP/Kis Trading MCP/tools/base.py:45, backtester/kis_auth.py:35 and examples_llm/kis_auth.py:32 among others. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio, Streamable HTTP and HTTP with SSEMCP/KIS Code Assistant MCP/server.py:776, MCP/Kis Trading MCP/module/plugin/environment.py:30, MCP/Kis Trading MCP/module/plugin/environment.py:30
- Starts other programs
- 30 callsMCP/KIS Code Assistant MCP/bin/cli.js:21, MCP/KIS Code Assistant MCP/bin/cli.js:31, MCP/KIS Code Assistant MCP/bin/cli.js:39
- Outbound network calls
- 88 callsMCP/KIS Code Assistant MCP/server.py:313, MCP/KIS Code Assistant MCP/server.py:331, MCP/Kis Trading MCP/module/plugin/kis.py:34
- Writes or deletes files
- 80 callsMCP/Kis Trading MCP/module/plugin/database.py:462, MCP/Kis Trading MCP/module/plugin/kis.py:18, MCP/Kis Trading MCP/module/plugin/kis.py:147
- Lockfile
- uv.lock and 4 more
Pattern matches on the source text of 1047 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 2.0K words, fetched 5 days ago. The original in the repository is authoritative.
Read full README