1. Conduid
  2. Developer Tools
  3. Open Trading API
MCP server · Developer Tools

Open Trading API

Korea Investment & Securities Open API Github

74Good

Scored 5 hours ago · breakdown

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

From source
git clone https://github.com/koreainvestment/open-trading-api

Tools (20)

get_backtest_result_tool백테스트 결과를 조회합니다.
ParameterTypeDescription
job_id *stringrun_backtest_tool / run_preset_backtest_tool 반환값의 job_id
timeoutnumber최대 대기 시간 (초, 기본 300초=5분). wait=True일 때만 적용
waitbooleanTrue(기본)면 완료까지 대기, False면 즉시 현재 상태 반환
get_preset_yaml_tool프리셋 전략을 .kis.yaml 문자열로 반환합니다.
ParameterTypeDescription
param_overridesobject파라미터 오버라이드 (예: {"period": 21, "oversold": 25})
strategy_id *string전략 ID (예: sma_crossover, momentum, trend_filter_signal)
get_report_tool백테스트 리포트를 생성합니다.
ParameterTypeDescription
formatstring"json" (핵심 지표 요약) 또는 "html" (전체 HTML 리포트 파일 경로)
job_id *string완료된 백테스트의 job_id
list_indicators_tool지원하는 기술적 지표 목록과 파라미터 정의를 반환합니다 (70개+).
list_presets_tool10개 프리셋 전략 목록과 파라미터 정의를 반환합니다.
optimize_strategy_tool전략 파라미터 최적화를 시작합니다 (비동기 — 즉시 job_id 반환).
ParameterTypeDescription
commission_ratenumber수수료율
end_datestring종료일 YYYY-MM-DD (기본: 오늘)
initial_capitalnumber초기 자본금 (원, 기본 1,000만)
max_samplesintegerrandom search 최대 샘플 수 (기본 20)
parameters *array파라미터 정의 리스트. 예: [{"name": "fast_period", "min": 5, "max": 20, "step": 5}, {"name": "slow_period", "min": 20, "max": 60, "step": 10}]
search_typestring"grid" (전체 탐색) 또는 "random" (무작위 샘플링)
seedintegerrandom search 재현성 시드
slippagenumber슬리피지 (기본 0%, 0.001=0.1%로 설정 시 KRXSlippageModel 적용)
start_datestring시작일 YYYY-MM-DD (기본: 1년 전)
strategy_id *string전략 ID (예: "sma_crossover", "golden_cross")
symbols *array종목 코드 리스트 (예: ["005930"])
targetstring최적화 목표 ("sharpe_ratio" | "total_return" | "max_drawdown" | "win_rate")
tax_ratenumber세율
read_source_codeAPI 검색 결과의 URL에서 실제 GitHub 코드를 가져옵니다. 파라미터: - url_main: 메인 호출 파일 URL (필수) - url_chk: 테스트 호출 파일 URL (선택) 사용 예시: 1. api_search tool로 원하는 API를 찾습니다 2. 검색 결과에서 url_main, url_chk를 확인합니다 3. 이 tool을 사용해서 실제 GitHub 코드를 가져옵니다
ParameterTypeDescription
url_chkstring
url_main *string
retry_backtest_tool실패한 백테스트를 재시도합니다.
ParameterTypeDescription
job_id *string실패한 run_backtest_tool / run_preset_backtest_tool 의 job_id
run_backtest_toolYAML 전략을 백테스트합니다 (비동기 — 즉시 job_id 반환).
ParameterTypeDescription
commission_ratenumber수수료율 (기본 0.015%)
end_datestring종료일 YYYY-MM-DD (기본: 오늘)
initial_capitalnumber초기 자본금 (원, 기본 1,000만)
slippagenumber슬리피지 (기본 0%, 0.001=0.1%로 설정 시 KRXSlippageModel 적용)
start_datestring시작일 YYYY-MM-DD (기본: 1년 전)
symbols *array종목 코드 리스트 (예: ["005930", "000660"])
tax_ratenumber거래세율 (기본 0.2%)
yaml_content *string.kis.yaml 포맷 전략 문자열
run_batch_backtest_tool여러 전략을 동시에 백테스트하고 비교 결과를 반환합니다.
ParameterTypeDescription
commission_ratenumber공통 수수료율
end_datestring공통 종료일 YYYY-MM-DD (기본: 오늘)
initial_capitalnumber공통 초기 자본금 (원, 기본 1,000만)
items *array전략 목록. 각 항목에 다음 키 포함: - {"strategy_id": "sma_crossover", "symbols": ["005930"], "param_overrides": {...}} - {"yaml_content": "...", "symbols": ["000660"]}
start_datestring공통 시작일 YYYY-MM-DD (기본: 1년 전)
tax_ratenumber공통 세율
run_preset_backtest_tool프리셋 전략을 백테스트합니다 (비동기 — 즉시 job_id 반환).
ParameterTypeDescription
commission_ratenumber수수료율
end_datestring종료일 YYYY-MM-DD (기본: 오늘)
initial_capitalnumber초기 자본금 (원, 기본 1,000만)
param_overridesobject파라미터 오버라이드 (예: {"period": 21})
slippagenumber슬리피지 (기본 0%, 0.001=0.1%로 설정 시 KRXSlippageModel 적용)
start_datestring시작일 YYYY-MM-DD (기본: 1년 전)
strategy_id *string전략 ID (예: sma_crossover, momentum, trend_filter_signal)
symbols *array종목 코드 리스트 (예: ["005930"])
tax_ratenumber거래세율
search_auth_api
ParameterTypeDescription
api_namestring
descriptionstring
function_namestring
querystring
responsestring
subcategorystring
search_domestic_bond_api
ParameterTypeDescription
api_namestring
descriptionstring
function_namestring
querystring
responsestring
subcategorystring
search_domestic_futureoption_api
ParameterTypeDescription
api_namestring
descriptionstring
function_namestring
querystring
responsestring
subcategorystring
search_domestic_stock_api
ParameterTypeDescription
api_namestring
descriptionstring
function_namestring
querystring
responsestring
subcategorystring
search_elw_api
ParameterTypeDescription
api_namestring
descriptionstring
function_namestring
querystring
responsestring
subcategorystring
search_etfetn_api
ParameterTypeDescription
api_namestring
descriptionstring
function_namestring
querystring
responsestring
subcategorystring
search_overseas_futureoption_api
ParameterTypeDescription
api_namestring
descriptionstring
function_namestring
querystring
responsestring
subcategorystring
search_overseas_stock_api
ParameterTypeDescription
api_namestring
descriptionstring
function_namestring
querystring
responsestring
subcategorystring
validate_yaml_toolYAML 전략 문자열의 유효성을 검증합니다.
ParameterTypeDescription
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
Questions

About Open Trading API

How do I install Open Trading API?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Open Trading API safe to use with an AI agent?

Its trust score is 74 out of 100 (good). 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. Conduid's scan of 1.0K source files found that it serves MCP over stdio, Streamable HTTP and HTTP with SSE, starts other programs (30 calls), makes outbound network calls (88 calls) and writes or deletes files (80 calls). Its dependencies are pinned by uv.lock and 4 more. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Open Trading API still maintained?

Yes — the last commit was 2 days ago. The repository has 1.7K stars and 846 forks and 32 open issues.

What tools does Open Trading API provide?

Conduid read 20 tools from the source: get_backtest_result_tool, get_preset_yaml_tool, get_report_tool, list_indicators_tool, list_presets_tool, optimize_strategy_tool, read_source_code, retry_backtest_tool and 12 more. 18 of them publish their parameters, listed under Tools above.