| name | description | compatibility | metadata | ||||
|---|---|---|---|---|---|---|---|
hantu-api |
Retrieve and summarize Korea Investment (Hantu/KIS) Open API documentation from assets/hantu-api.xlsx in an LLM-friendly format |
opencode |
|
- Find relevant Hantu API endpoints from the workbook catalogue.
- Fetch the full manual for a specific endpoint by
순번. - Convert the raw CSV-like sheet into a compact engineering summary.
Use this skill when you need Korea Investment Securities Open API docs, also called Hantu or KIS API docs, and the source of truth is assets/hantu-api.xlsx.
- Print the catalogue sheet:
bunx xlsx-cli assets/hantu-api.xlsx- Filter the output with
rgto find candidates:
bunx xlsx-cli assets/hantu-api.xlsx | rg '주식현재가 시세|inquire-price|FHKST01010100'
bunx xlsx-cli assets/hantu-api.xlsx | rg '\[국내주식\].*주문/계좌'
bunx xlsx-cli assets/hantu-api.xlsx | rg 'WEBSOCKET|실시간체결'- Read the matching row's leftmost
순번value.
Simple index examples:
순번,API 통신방식,메뉴 위치,API 명,API ID,실전 TR_ID,모의 TR_ID,HTTP Method,URL 명
20,REST,[국내주식] 주문/계좌,주식주문(현금),v1_국내주식-001,(매도) TTTC0011U (매수) TTTC0012U,(매도) VTTC0011U (매수) VTTC0012U,POST,/uapi/domestic-stock/v1/trading/order-cash
29,REST,[국내주식] 기본시세,주식현재가 시세,v1_국내주식-008,FHKST01010100,FHKST01010100,GET,/uapi/domestic-stock/v1/quotations/inquire-priceIn the index sheet, 순번 is the first column and is the value to pass to --sheet-index for endpoint detail sheets.
- Fetch the detailed manual for that row:
bunx xlsx-cli assets/hantu-api.xlsx --sheet-index <순번>xlsx-cli -hdocuments--sheet-indexas 0-based.- In this workbook, sheet
0is the top-level catalogueAPI 목록. - Endpoint detail sheets start at
1, so catalogue순번maps directly to--sheet-index.
Examples:
# 순번 20 -> 주식주문(현금)
bunx xlsx-cli assets/hantu-api.xlsx --sheet-index 20
# 순번 29 -> 주식현재가 시세
bunx xlsx-cli assets/hantu-api.xlsx --sheet-index 29Prefer a compact structured summary with:
- endpoint name and product area
- REST vs WebSocket
- method, domain, path
- real TR ID and mock TR ID
- required headers
- query params or body fields
- important response fields
- mock support and special constraints
- one minimal example request
- POST body keys are often required in uppercase exactly as documented.
- Numeric-looking request fields are often strings and should be sent as strings.
- Real and mock TR IDs may differ.
- Some endpoints explicitly say
모의투자 미지원. - Market codes like
KRX,NXT, andSORcan materially change behavior. - Some WebSocket docs appear in the catalogue as
POSTwith/tryitout/...; treat those as subscription docs, not normal REST calls.
Check help with:
bunx xlsx-cli -hMost useful options here:
--sheet-index <idx>to fetch a detail sheet by순번--sheet <name>to fetch by sheet name--list-sheetsto inspect workbook layout--sheet-rows <n>to limit rows--output <file>to save output--field-sep <sep>to change CSV delimiter--jsonif structured JSON output is easier than CSV--txtfor TSV/plain-text output--quietto reduce noise
Default CSV output is usually best for this workbook.
- For broad searches, first return 3-10 candidate rows with
순번,API 명,API ID,TR_ID, method, and path. - For specific requests, fetch the matching sheet immediately.
- Do not dump hundreds of catalogue rows unless explicitly asked.
- Do not assume mock support when the workbook says
모의투자 미지원.