[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73H88GJHGQBAMA4NTJ5M1KP":3,"skill-same:01M73H88GJHGQBAMA4NTJ5M1KP":91},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":64,"commitSha":65,"skillDirectory":66,"forksCount":67,"repositoryHtmlUrl":68,"repositoryHomepageUrl":6,"ownerHtmlUrl":69,"ownerBlogUrl":6,"ownerDescription":70,"updatedAt":71,"install":72,"resources":84},"01M73H88GJHGQBAMA4NTJ5M1KP","k-krx",null,"Queries the KRX (Korea Exchange, `한국거래소`) Data Marketplace OPEN API for Korean exchange market data — KOSPI\u002FKOSDAQ\u002FKONEX stock daily trading, stock master (종목기본정보) data, ETF\u002FETN\u002FELW quotes, index series, bonds, derivatives, commodities, and ESG products. Covers service discovery across the 7-category \u002F 31-service catalog, authentication, request formatting, and error handling. Requires KRX_API_KEY environment variable (issued via openapi.krx.co.kr with administrator approval; no public demo key).","5throck\u002Fai-workspace-standards","5throck","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10958964?v=4","01M73BFEH0V0VS483TW4JD49JW","01M73BFEJ5VQZJHJSFTVPAZGDM",25,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fcommon\u002F.hermes\u002Fskills\u002Fk-krx\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nlang: ko\nlang_reason: proper-noun\nname: k-krx\nscope: common\ndescription: >\n  Queries the KRX (Korea Exchange, `한국거래소`) Data Marketplace OPEN API for\n  Korean exchange market data — KOSPI\u002FKOSDAQ\u002FKONEX stock daily trading,\n  stock master (종목기본정보) data, ETF\u002FETN\u002FELW quotes, index series, bonds,\n  derivatives, commodities, and ESG products. Covers service discovery across\n  the 7-category \u002F 31-service catalog, authentication, request formatting,\n  and error handling. Requires KRX_API_KEY environment variable (issued via\n  openapi.krx.co.kr with administrator approval; no public demo key).\nversion: 1.0.3\nlast_reviewed: 2026-09-11\nstatus: active\nowner: public-data-analyst\nprerequisites: KRX_API_KEY environment variable (issued via openapi.krx.co.kr; administrator approval required)\nl2_propagate: true\nrelates_to:\n  - skill: k-dart\n    type: composes_with\n  - skill: k-ecos\n    type: composes_with\n  - skill: k-kosis\n    type: composes_with\n  - skill: k-opendata\n    type: composes_with\nmetadata:\n  type: domain\n  source: https:\u002F\u002Fopenapi.krx.co.kr\n  license: KRX Data Marketplace OPEN API terms (`이용약관`)\n  category: market-data\n  locale: ko-KR\n  triggers:\n    - k-krx\n    - \u002Fk-krx\n    - KRX\n    - '`한국거래소`'\n    - '`KRX Open API`'\n    - '`정보데이터시스템`'\n    - '`주식 시세`'\n    - '`코스피`'\n    - '`코스닥`'\n    - '`코넥스`'\n    - '`일별매매정보`'\n    - '`종목기본정보`'\n    - Korean stock market data\n    - KOSPI market data\n    - KOSDAQ market data\n---\n\n## Context\n\nUnified skill for the KRX (Korea Exchange, `한국거래소`) Data Marketplace OPEN API — the official paid-free statistics API over KRX trading data: daily trading for KOSPI\u002FKOSDAQ\u002FKONEX listed shares, warrant securities, listed stock master information, ETF\u002FETN\u002FELW, index series (KRX\u002FKOSPI\u002FKOSDAQ, bond, derivatives), bond markets, futures\u002Foptions, petroleum\u002Fgold\u002Femissions commodity markets, and ESG products. KRX is the authoritative primary source for Korean exchange market data — anything visible on the KRX 정보데이터시스템 (data.krx.co.kr) download screens is available here as an API. Complements company fundamentals (`k-dart`), central-bank statistics (`k-ecos`), national statistics (`k-kosis`), and portal trade data (`k-opendata`): KRX supplies the market-price layer (quotes, volumes, listings, indices) needed to frame a company or market narrative against actual trading activity. Useful for pitch-deck research requiring verified Korean market data with citation.\n\n## When to Use\n\n- Daily OHLCV\u002Fmarket-cap retrieval for KOSPI\u002FKOSDAQ stocks (e.g., \"get 2026 August daily trading for 삼성전자\")\n- Listed stock master data (ISIN code, listing date, listed shares, capital) for an exchange segment\n- ETF\u002FETN\u002FELW daily trading data or NAV-related product information\n- Index time series (KRX 시리즈, KOSPI\u002FKOSDAQ series, bond indices, derivatives indices)\n- Bond, futures\u002Foptions, or commodity (petroleum, gold, emissions) market daily trading\n- Investor-facing materials needing verified Korean exchange data with citation\n- Any engagement requiring official Korea Exchange market data\n\n## Execution Steps\n\n1. **Verify Prerequisites**: Confirm `KRX_API_KEY` environment variable is set. If not, guide the user through key issuance (see Prerequisites) — note that both the key issuance and the per-service usage application require administrator approval, which takes time; apply early.\n2. **Select Service**: Match the request to one of the 31 services in the Service Catalog below (7 categories: 지수\u002F주식\u002F증권상품\u002F채권\u002F파생상품\u002F일반상품\u002FESG). Most user requests map to a `*_bydd_trd` (daily trading) or `*_isu_base_info` (stock master) service.\n3. **Resolve Parameters**: Open the service's detail page (URL pattern in the catalog) while logged in to the portal and read its 개발 명세서 (specification: request parameters and output fields, downloadable per service). Parameter and output field names are published per service there — do not guess them.\n4. **Execute API Call**: `curl` with the `AUTH_KEY` header against `https:\u002F\u002Fdata-dbg.krx.co.kr\u002Fsvc\u002Fapis\u002F{category}\u002F{apiId}.{json|xml}` (see Request URL Format).\n5. **Process Response**: A JSON success payload carries the data rows; an error is a bare `{\"respCode\":\"...\",\"respMsg\":\"...\"}` object — treat any response with `respCode` and no data payload as an error and surface `respCode`+`respMsg` verbatim (see Error Handling).\n6. **Format Output**: Present rows sorted by date; keep original figures; convert units only for display (거래대금 in 억\u002F조 KRW etc.) while preserving raw values in deliverables.\n7. **Save to Deliverables**: Store research findings in `deliverables\u002Fresearch\u002F` per project conventions; append disclaimer \"`한국거래소 Data Marketplace OPEN API 자료 기준 (조회: YYYY-MM-DD)`\" with the actual retrieval date.\n\n## Output Format\n\n- Daily trading: one row per (date × instrument) — price (open\u002Fhigh\u002Flow\u002Fclose), change, volume, trading value; exact field names per the service's 개발 명세서\n- Stock master: ISIN\u002F단축코드, Korean\u002FEnglish name, listing date, listed shares, market cap basis fields\n- Index series: date \u002F index value \u002F change per series\n- Always state the service name, the queried period, and the retrieval date in deliverables\n\n## Reference Material\n\n- `references\u002Fterms-ko.json` — Korean service\u002Fcategory name → API ID mapping (all 31 services with English glosses and coverage start dates). Keep SKILL.md English; look up Korean terms there.\n\n## Related Skills\n\n- k-dart\n- k-ecos\n- k-kosis\n- k-opendata\n\n## KRX Open API Specification\n\n### Prerequisites\n\n`KRX_API_KEY` environment variable. Issue flow (all steps on the [KRX OPEN API portal](https:\u002F\u002Fopenapi.krx.co.kr\u002Fcontents\u002FOPP\u002FMAIN\u002Fmain\u002Findex.cmd)):\n\n1. Sign up (`회원가입` — individual: identity verification or social login; business: business registration info)\n2. Log in → `마이페이지` → `API 인증키 신청` (`\u002Fcontents\u002FOPP\u002FMYPG\u002Fmypage\u002FOPPMYPG001.cmd`) — **usable only after administrator approval**\n3. Apply for the desired API service (`API 사용 신청`) with purpose (`신청 목적`) and usage period (`이용기간`: 1M\u002F3M\u002F6M\u002F1Y) — **approved per service by an administrator**\n4. Develop against the approved services; usage status is visible in `마이페이지` → `이용현황`\n\n**No public demo key exists** — unlike some other Korean public APIs, placeholder keys are rejected (verified live 2026-09-11: literal `sample`\u002F`test`\u002F`public` keys all return `401 Unauthorized Key`).\n\n### Authentication\n\nPass the issued key in the HTTP request header field **`AUTH_KEY`** (portal wording: \"Request 헤더에 인증키 값을 AUTH_KEY 필드에 추가하여 전달\"). Never put the key in a query string.\n\n### Request URL Format\n\nAll services use one positional path template — the API ID is the path suffix, and the response format is chosen by the file extension:\n\n```\nhttps:\u002F\u002Fdata-dbg.krx.co.kr\u002Fsvc\u002Fapis\u002F{category}\u002F{apiId}.{json|xml}\n```\n\n| Segment | Values | Notes |\n|---|---|---|\n| `category` | `idx` \\| `sto` \\| `etp` \\| `bon` \\| `drv` \\| `gen` \\| `esg` | 지수\u002F주식\u002F증권상품\u002F채권\u002F파생상품\u002F일반상품\u002FESG |\n| `apiId` | see Service Catalog | e.g. `stk_bydd_trd` |\n| extension | `json` \\| `xml` | `json` recommended |\n\nThe portal's own sample-test form uses the parallel path `\u002Fsvc\u002Fsample\u002Fapis\u002F{category}\u002F{apiId}.{json|xml}` (in-browser `샘플테스트` on each service detail page). Data-filter query parameters (date range, ticker codes, market segments, etc.) are per service and defined in its 개발 명세서 — attach them as ordinary query parameters.\n\n### Service Catalog (31 services, all verified 2026-09-11)\n\nDetail page for each service (login required for spec\u002Fsample): `https:\u002F\u002Fopenapi.krx.co.kr\u002Fcontents\u002FOPP\u002FUSES\u002Fservice\u002FOPPUSES00{cat}_S2.cmd?BO_ID={boId}`\n\n| Category | Service (Korean) | API ID | Coverage from | boId |\n|---|---|---|---|---|\n| idx | KRX 시리즈 일별시세정보 | `krx_dd_trd` | 2010-01-04 | SsgXTEspyJESKvyXZtCU |\n| idx | KOSPI 시리즈 일별시세정보 | `kospi_dd_trd` | 2010-01-04 | EREKZauXnMmxyIlqzeDN |\n| idx | KOSDAQ 시리즈 일별시세정보 | `kosdaq_dd_trd` | 2010-01-04 | nimebcamqFNIPNcRrHoO |\n| idx | 채권지수 시세정보 | `bon_dd_trd` | 2010-01-04 | vMxIKCtPBUeRytCqkoFv |\n| idx | 파생상품지수 시세정보 | `drvprod_dd_trd` | 2010-01-04 | rPBjbLtScMwmSXWDOYPd |\n| sto | 유가증권 일별매매정보 | `stk_bydd_trd` | 2010-01-04 | JvJFzlAENzZlPBDNGAWC |\n| sto | 코스닥 일별매매정보 | `ksq_bydd_trd` | 2010-01-04 | hZjGpkllgCBCWqeTsYFj |\n| sto | 코넥스 일별매매정보 | `knx_bydd_trd` | 2013-07-01 | HSiRvxGSYnvaKuAuqpqp |\n| sto | 신주인수권증권 일별매매정보 | `sw_bydd_trd` | 2010-01-04 | erXKnEAzTqcGnkcoSdGA |\n| sto | 신주인수권증서 일별매매정보 | `sr_bydd_trd` | 2010-02-12 | YieGrzzJtKhbaNLuKmhz |\n| sto | 유가증권 종목기본정보 | `stk_isu_base_info` | 2010-01-04 | PiwgMdTwmsenXhmqqxuj |\n| sto | 코스닥 종목기본정보 | `ksq_isu_base_info` | 2010-01-04 | CifLHplnUFMgpHIMMPXs |\n| sto | 코넥스 종목기본정보 | `knx_isu_base_info` | 2013-07-01 | COgTLqgmGlqyJvaEFNIc |\n| etp | ETF 일별매매정보 | `etf_bydd_trd` | 2010-01-04 | nrEpCLaZpoLCTzPUMxuF |\n| etp | ETN 일별매매정보 | `etn_bydd_trd` | 2014-11-17 | VujebrcOsZQMybnUuwLk |\n| etp | ELW 일별매매정보 | `elw_bydd_trd` | 2010-01-04 | brBhSEuDCUNpmfsCslfM |\n| bon | 국채전문유통시장 일별매매정보 | `kts_bydd_trd` | 2010-01-04 | CEnOyORzHgXWpdbUfWyf |\n| bon | 일반채권시장 일별매매정보 | `bnd_bydd_trd` | 2010-01-04 | JfStBNhXISpVVfBHgspT |\n| bon | 소액채권시장 일별매매정보 | `smb_bydd_trd` | 2010-01-04 | yrTTOsXuYzHprbWLuYzd |\n| drv | 선물 일별매매정보 (주식선물 외) | `fut_bydd_trd` | 2010-01-04 | ilaVYOabbaicHbKTsqga |\n| drv | 주식선물(유가) 일별매매정보 | `eqsfu_stk_bydd_trd` | 2010-01-04 | JzVvQnspImpuqtZlFWpJ |\n| drv | 주식선물(코스닥) 일별매매정보 | `eqkfu_ksq_bydd_trd` | 2015-08-03 | henfdJADfLTCUCBWIRCj |\n| drv | 옵션 일별매매정보 (주식옵션 외) | `opt_bydd_trd` | 2010-01-04 | AoTvuFpukvuBsfypkZbq |\n| drv | 주식옵션(유가) 일별매매정보 | `eqsop_bydd_trd` | 2010-01-04 | fwWKgzbevDVtAoECgkpA |\n| drv | 주식옵션(코스닥) 일별매매정보 | `eqkop_bydd_trd` | 2017-06-26 | AFNbHSizSPnEssZoUqiS |\n| gen | 석유시장 일별매매정보 | `oil_bydd_trd` | 2012-03-30 | rTvrZvAFKfcaLPOggJtW |\n| gen | 금시장 일별매매정보 | `gold_bydd_trd` | 2014-03-24 | sxveSnWzWNzWxQASsgEG |\n| gen | 배출권 시장 일별매매정보 | `ets_bydd_trd` | 2015-01-12 | IZiYdcgRQFMeENJPEMKG |\n| esg | ESG 증권상품 | `esg_etp_info` | 2020-01-02 | dpRoGGhdnfSZSrMFtUCz |\n| esg | 사회책임투자채권 정보 | `sri_bond_info` | 2019-01-01 | MwsSXzVIceQhMSJUeCdp |\n| esg | ESG 지수 | `esg_index_info` | 2020-01-02 | WgFYvEvsseQMARfMVZCq |\n\n### Example Requests\n\n```bash\n# KOSPI (유가증권시장) listed shares — daily trading, JSON\ncurl -fsS -H \"AUTH_KEY: $KRX_API_KEY\" \\\n  'https:\u002F\u002Fdata-dbg.krx.co.kr\u002Fsvc\u002Fapis\u002Fsto\u002Fstk_bydd_trd.json'\n\n# Same service in XML\ncurl -fsS -H \"AUTH_KEY: $KRX_API_KEY\" \\\n  'https:\u002F\u002Fdata-dbg.krx.co.kr\u002Fsvc\u002Fapis\u002Fsto\u002Fstk_bydd_trd.xml'\n\n# ETF daily trading\ncurl -fsS -H \"AUTH_KEY: $KRX_API_KEY\" \\\n  'https:\u002F\u002Fdata-dbg.krx.co.kr\u002Fsvc\u002Fapis\u002Fetp\u002Fetf_bydd_trd.json'\n\n# KOSDAQ listed stock master information\ncurl -fsS -H \"AUTH_KEY: $KRX_API_KEY\" \\\n  'https:\u002F\u002Fdata-dbg.krx.co.kr\u002Fsvc\u002Fapis\u002Fsto\u002Fksq_isu_base_info.json'\n```\n\nAttach the service's date-range \u002F instrument filter query parameters exactly as named in its 개발 명세서 (step 3 of Execution Steps) — parameter names are not uniform across services and must not be guessed.\n\n### Error Handling\n\nVerified live (2026-09-11): an unauthenticated or unauthorized call returns a bare error envelope:\n\n```json\n{\"respCode\": \"401\", \"respMsg\": \"Unauthorized Key\"}\n```\n\nTreat any JSON object carrying `respCode`\u002F`respMsg` without a data payload as an error and surface both fields verbatim. Codes other than `401` are documented per service in the portal spec documents; map unknown codes to \"see the service's 개발 명세서 \u002F FAQ\" rather than guessing.\n\n### Response Policy\n\n- This skill is read-only query only.\n- A successful JSON payload is the data rows for the requested service; iterate rows and keep original string figures in deliverables (format for display only).\n- If `respCode` indicates auth failure, check that the key is valid **and** that the specific service was approved for use (`마이페이지` → `발급내역`\u002F`이용현황`); key validity alone is not enough.\n- Append disclaimer at the end: \"`한국거래소 Data Marketplace OPEN API 자료 기준 (조회: YYYY-MM-DD)`\"\n- When reproducing figures in client-facing deliverables, cite \"`출처: 한국거래소(KRX)`\" plus the retrieval date, and confirm the portal `이용약관` for redistribution constraints.\n\n### Keyless Fallback (⚠️ unofficial — use only when no key is available)\n\nThe KRX 정보데이터시스템 web UI (\u003Chttps:\u002F\u002Fdata.krx.co.kr>) exposes its download datasets through an internal JSON gateway (`POST \u002Fcomm\u002FbldAttendant\u002FgetJsonData.cmd` with a `bld` screen code, e.g. `dbms\u002FMDC\u002FSTAT\u002Fstandard\u002FMDCSTAT01501` for the all-stock quote screen). Open-source libraries (e.g. pykrx) are built on it. ⚠️ Unverified\u002Funofficial: this gateway is not a published API, can change without notice, and is unsuitable for bulk extraction — prefer the official OPEN API for anything reproducible, and treat fallback results as best-effort smoke data only.\n\n### Failure Modes\n\n| Symptom | Cause | Action |\n|---|---|---|\n| `401 Unauthorized Key` envelope | Key missing\u002Finvalid, expired usage period, or service not approved | Check `KRX_API_KEY`; verify 발급내역\u002F이용현황 on the portal; re-apply if the usage period lapsed |\n| `404` on an API path | Wrong category segment or API ID | Copy the API ID from the Service Catalog \u002F terms-ko.json verbatim |\n| Empty\u002Fshort data | Requested period predates the service's coverage start | Check Coverage from in the Service Catalog |\n| Portal spec\u002Fsample page shows \"로그인 필요\" | Spec and sample test require a logged-in portal session | Log in at openapi.krx.co.kr, then reopen the service detail page |\n\n### Notes\n\n- Data source: [KRX Data Marketplace OPEN API](https:\u002F\u002Fopenapi.krx.co.kr\u002Fcontents\u002FOPP\u002FMAIN\u002Fmain\u002Findex.cmd) — service intro (`서비스 소개`), usage guide (`서비스 이용방법`), service list (`서비스 목록`), notices, and FAQ live on the portal.\n- All request paths, the 31 API IDs, the `AUTH_KEY` header name, the `json`\u002F`xml` extension mechanism, and the error envelope above were verified against the live portal and API on 2026-09-11. Per-service request\u002Foutput field names were not verifiable without an approved key — always read them from the service's 개발 명세서.\n- Rate limits\u002Fquotas are not publicly documented; usage is tracked per application in `마이페이지` → `이용현황`.\n- Market-price context pairs well with company fundamentals (`k-dart`) and macro statistics (`k-ecos`); prefer KRX for anything traded on-exchange (quotes, volumes, indices, listings).\n","## Context\n\nUnified skill for the KRX (Korea Exchange, `한국거래소`) Data Marketplace OPEN API — the official paid-free statistics API over KRX trading data: daily trading for KOSPI\u002FKOSDAQ\u002FKONEX listed shares, warrant securities, listed stock master information, ETF\u002FETN\u002FELW, index series (KRX\u002FKOSPI\u002FKOSDAQ, bond, derivatives), bond markets, futures\u002Foptions, petroleum\u002Fgold\u002Femissions commodity markets, and ESG products. KRX is the authoritative primary source for Korean exchange market data — anything visible on the KRX 정보데이터시스템 (data.krx.co.kr) download screens is available here as an API. Complements company fundamentals (`k-dart`), central-bank statistics (`k-ecos`), national statistics (`k-kosis`), and portal trade data (`k-opendata`): KRX supplies the market-price layer (quotes, volumes, listings, indices) needed to frame a company or market narrative against actual trading activity. Useful for pitch-deck research requiring verified Korean market data with citation.\n\n## When to Use\n\n- Daily OHLCV\u002Fmarket-cap retrieval for KOSPI\u002FKOSDAQ stocks (e.g., \"get 2026 August daily trading for 삼성전자\")\n- Listed stock master data (ISIN code, listing date, listed shares, capital) for an exchange segment\n- ETF\u002FETN\u002FELW daily trading data or NAV-related product information\n- Index time series (KRX 시리즈, KOSPI\u002FKOSDAQ series, bond indices, derivatives indices)\n- Bond, futures\u002Foptions, or commodity (petroleum, gold, emissions) market daily trading\n- Investor-facing materials needing verified Korean exchange data with citation\n- Any engagement requiring official Korea Exchange market data\n\n## Execution Steps\n\n1. **Verify Prerequisites**: Confirm `KRX_API_KEY` environment variable is set. If not, guide the user through key issuance (see Prerequisites) — note that both the key issuance and the per-service usage application require administrator approval, which takes time; apply early.\n2. **Select Service**: Match the request to one of the 31 services in the Service Catalog below (7 categories: 지수\u002F주식\u002F증권상품\u002F채권\u002F파생상품\u002F일반상품\u002FESG). Most user requests map to a `*_bydd_trd` (daily trading) or `*_isu_base_info` (stock master) service.\n3. **Resolve Parameters**: Open the service's detail page (URL pattern in the catalog) while logged in to the portal and read its 개발 명세서 (specification: request parameters and output fields, downloadable per service). Parameter and output field names are published per service there — do not guess them.\n4. **Execute API Call**: `curl` with the `AUTH_KEY` header against `https:\u002F\u002Fdata-dbg.krx.co.kr\u002Fsvc\u002Fapis\u002F{category}\u002F{apiId}.{json|xml}` (see Request URL Format).\n5. **Process Response**: A JSON success payload carries the data rows; an error is a bare `{\"respCode\":\"...\",\"respMsg\":\"...\"}` object — treat any response with `respCode` and no data payload as an error and surface `respCode`+`respMsg` verbatim (see Error Handling).\n6. **Format Output**: Present rows sorted by date; keep original figures; convert units only for display (거래대금 in 억\u002F조 KRW etc.) while preserving raw values in deliverables.\n7. **Save to Deliverables**: Store research findings in `deliverables\u002Fresearch\u002F` per project conventions; append disclaimer \"`한국거래소 Data Marketplace OPEN API 자료 기준 (조회: YYYY-MM-DD)`\" with the actual retrieval date.\n\n## Output Format\n\n- Daily trading: one row per (date × instrument) — price (open\u002Fhigh\u002Flow\u002Fclose), change, volume, trading value; exact field names per the service's 개발 명세서\n- Stock master: ISIN\u002F단축코드, Korean\u002FEnglish name, listing date, listed shares, market cap basis fields\n- Index series: date \u002F index value \u002F change per series\n- Always state the service name, the queried period, and the retrieval date in deliverables\n\n## Reference Material\n\n- `references\u002Fterms-ko.json` — Korean service\u002Fcategory name → API ID mapping (all 31 services with English glosses and coverage start dates). Keep SKILL.md English; look up Korean terms there.\n\n## Related Skills\n\n- k-dart\n- k-ecos\n- k-kosis\n- k-opendata\n\n## KRX Open API Specification\n\n### Prerequisites\n\n`KRX_API_KEY` environment variable. Issue flow (all steps on the [KRX OPEN API portal](https:\u002F\u002Fopenapi.krx.co.kr\u002Fcontents\u002FOPP\u002FMAIN\u002Fmain\u002Findex.cmd)):\n\n1. Sign up (`회원가입` — individual: identity verification or social login; business: business registration info)\n2. Log in → `마이페이지` → `API 인증키 신청` (`\u002Fcontents\u002FOPP\u002FMYPG\u002Fmypage\u002FOPPMYPG001.cmd`) — **usable only after administrator approval**\n3. Apply for the desired API service (`API 사용 신청`) with purpose (`신청 목적`) and usage period (`이용기간`: 1M\u002F3M\u002F6M\u002F1Y) — **approved per service by an administrator**\n4. Develop against the approved services; usage status is visible in `마이페이지` → `이용현황`\n\n**No public demo key exists** — unlike some other Korean public APIs, placeholder keys are rejected (verified live 2026-09-11: literal `sample`\u002F`test`\u002F`public` keys all return `401 Unauthorized Key`).\n\n### Authentication\n\nPass the issued key in the HTTP request header field **`AUTH_KEY`** (portal wording: \"Request 헤더에 인증키 값을 AUTH_KEY 필드에 추가하여 전달\"). Never put the key in a query string.\n\n### Request URL Format\n\nAll services use one positional path template — the API ID is the path suffix, and the response format is chosen by the file extension:\n\n```\nhttps:\u002F\u002Fdata-dbg.krx.co.kr\u002Fsvc\u002Fapis\u002F{category}\u002F{apiId}.{json|xml}\n```\n\n| Segment | Values | Notes |\n|---|---|---|\n| `category` | `idx` \\| `sto` \\| `etp` \\| `bon` \\| `drv` \\| `gen` \\| `esg` | 지수\u002F주식\u002F증권상품\u002F채권\u002F파생상품\u002F일반상품\u002FESG |\n| `apiId` | see Service Catalog | e.g. `stk_bydd_trd` |\n| extension | `json` \\| `xml` | `json` recommended |\n\nThe portal's own sample-test form uses the parallel path `\u002Fsvc\u002Fsample\u002Fapis\u002F{category}\u002F{apiId}.{json|xml}` (in-browser `샘플테스트` on each service detail page). Data-filter query parameters (date range, ticker codes, market segments, etc.) are per service and defined in its 개발 명세서 — attach them as ordinary query parameters.\n\n### Service Catalog (31 services, all verified 2026-09-11)\n\nDetail page for each service (login required for spec\u002Fsample): `https:\u002F\u002Fopenapi.krx.co.kr\u002Fcontents\u002FOPP\u002FUSES\u002Fservice\u002FOPPUSES00{cat}_S2.cmd?BO_ID={boId}`\n\n| Category | Service (Korean) | API ID | Coverage from | boId |\n|---|---|---|---|---|\n| idx | KRX 시리즈 일별시세정보 | `krx_dd_trd` | 2010-01-04 | SsgXTEspyJESKvyXZtCU |\n| idx | KOSPI 시리즈 일별시세정보 | `kospi_dd_trd` | 2010-01-04 | EREKZauXnMmxyIlqzeDN |\n| idx | KOSDAQ 시리즈 일별시세정보 | `kosdaq_dd_trd` | 2010-01-04 | nimebcamqFNIPNcRrHoO |\n| idx | 채권지수 시세정보 | `bon_dd_trd` | 2010-01-04 | vMxIKCtPBUeRytCqkoFv |\n| idx | 파생상품지수 시세정보 | `drvprod_dd_trd` | 2010-01-04 | rPBjbLtScMwmSXWDOYPd |\n| sto | 유가증권 일별매매정보 | `stk_bydd_trd` | 2010-01-04 | JvJFzlAENzZlPBDNGAWC |\n| sto | 코스닥 일별매매정보 | `ksq_bydd_trd` | 2010-01-04 | hZjGpkllgCBCWqeTsYFj |\n| sto | 코넥스 일별매매정보 | `knx_bydd_trd` | 2013-07-01 | HSiRvxGSYnvaKuAuqpqp |\n| sto | 신주인수권증권 일별매매정보 | `sw_bydd_trd` | 2010-01-04 | erXKnEAzTqcGnkcoSdGA |\n| sto | 신주인수권증서 일별매매정보 | `sr_bydd_trd` | 2010-02-12 | YieGrzzJtKhbaNLuKmhz |\n| sto | 유가증권 종목기본정보 | `stk_isu_base_info` | 2010-01-04 | PiwgMdTwmsenXhmqqxuj |\n| sto | 코스닥 종목기본정보 | `ksq_isu_base_info` | 2010-01-04 | CifLHplnUFMgpHIMMPXs |\n| sto | 코넥스 종목기본정보 | `knx_isu_base_info` | 2013-07-01 | COgTLqgmGlqyJvaEFNIc |\n| etp | ETF 일별매매정보 | `etf_bydd_trd` | 2010-01-04 | nrEpCLaZpoLCTzPUMxuF |\n| etp | ETN 일별매매정보 | `etn_bydd_trd` | 2014-11-17 | VujebrcOsZQMybnUuwLk |\n| etp | ELW 일별매매정보 | `elw_bydd_trd` | 2010-01-04 | brBhSEuDCUNpmfsCslfM |\n| bon | 국채전문유통시장 일별매매정보 | `kts_bydd_trd` | 2010-01-04 | CEnOyORzHgXWpdbUfWyf |\n| bon | 일반채권시장 일별매매정보 | `bnd_bydd_trd` | 2010-01-04 | JfStBNhXISpVVfBHgspT |\n| bon | 소액채권시장 일별매매정보 | `smb_bydd_trd` | 2010-01-04 | yrTTOsXuYzHprbWLuYzd |\n| drv | 선물 일별매매정보 (주식선물 외) | `fut_bydd_trd` | 2010-01-04 | ilaVYOabbaicHbKTsqga |\n| drv | 주식선물(유가) 일별매매정보 | `eqsfu_stk_bydd_trd` | 2010-01-04 | JzVvQnspImpuqtZlFWpJ |\n| drv | 주식선물(코스닥) 일별매매정보 | `eqkfu_ksq_bydd_trd` | 2015-08-03 | henfdJADfLTCUCBWIRCj |\n| drv | 옵션 일별매매정보 (주식옵션 외) | `opt_bydd_trd` | 2010-01-04 | AoTvuFpukvuBsfypkZbq |\n| drv | 주식옵션(유가) 일별매매정보 | `eqsop_bydd_trd` | 2010-01-04 | fwWKgzbevDVtAoECgkpA |\n| drv | 주식옵션(코스닥) 일별매매정보 | `eqkop_bydd_trd` | 2017-06-26 | AFNbHSizSPnEssZoUqiS |\n| gen | 석유시장 일별매매정보 | `oil_bydd_trd` | 2012-03-30 | rTvrZvAFKfcaLPOggJtW |\n| gen | 금시장 일별매매정보 | `gold_bydd_trd` | 2014-03-24 | sxveSnWzWNzWxQASsgEG |\n| gen | 배출권 시장 일별매매정보 | `ets_bydd_trd` | 2015-01-12 | IZiYdcgRQFMeENJPEMKG |\n| esg | ESG 증권상품 | `esg_etp_info` | 2020-01-02 | dpRoGGhdnfSZSrMFtUCz |\n| esg | 사회책임투자채권 정보 | `sri_bond_info` | 2019-01-01 | MwsSXzVIceQhMSJUeCdp |\n| esg | ESG 지수 | `esg_index_info` | 2020-01-02 | WgFYvEvsseQMARfMVZCq |\n\n### Example Requests\n\n```bash\n# KOSPI (유가증권시장) listed shares — daily trading, JSON\ncurl -fsS -H \"AUTH_KEY: $KRX_API_KEY\" \\\n  'https:\u002F\u002Fdata-dbg.krx.co.kr\u002Fsvc\u002Fapis\u002Fsto\u002Fstk_bydd_trd.json'\n\n# Same service in XML\ncurl -fsS -H \"AUTH_KEY: $KRX_API_KEY\" \\\n  'https:\u002F\u002Fdata-dbg.krx.co.kr\u002Fsvc\u002Fapis\u002Fsto\u002Fstk_bydd_trd.xml'\n\n# ETF daily trading\ncurl -fsS -H \"AUTH_KEY: $KRX_API_KEY\" \\\n  'https:\u002F\u002Fdata-dbg.krx.co.kr\u002Fsvc\u002Fapis\u002Fetp\u002Fetf_bydd_trd.json'\n\n# KOSDAQ listed stock master information\ncurl -fsS -H \"AUTH_KEY: $KRX_API_KEY\" \\\n  'https:\u002F\u002Fdata-dbg.krx.co.kr\u002Fsvc\u002Fapis\u002Fsto\u002Fksq_isu_base_info.json'\n```\n\nAttach the service's date-range \u002F instrument filter query parameters exactly as named in its 개발 명세서 (step 3 of Execution Steps) — parameter names are not uniform across services and must not be guessed.\n\n### Error Handling\n\nVerified live (2026-09-11): an unauthenticated or unauthorized call returns a bare error envelope:\n\n```json\n{\"respCode\": \"401\", \"respMsg\": \"Unauthorized Key\"}\n```\n\nTreat any JSON object carrying `respCode`\u002F`respMsg` without a data payload as an error and surface both fields verbatim. Codes other than `401` are documented per service in the portal spec documents; map unknown codes to \"see the service's 개발 명세서 \u002F FAQ\" rather than guessing.\n\n### Response Policy\n\n- This skill is read-only query only.\n- A successful JSON payload is the data rows for the requested service; iterate rows and keep original string figures in deliverables (format for display only).\n- If `respCode` indicates auth failure, check that the key is valid **and** that the specific service was approved for use (`마이페이지` → `발급내역`\u002F`이용현황`); key validity alone is not enough.\n- Append disclaimer at the end: \"`한국거래소 Data Marketplace OPEN API 자료 기준 (조회: YYYY-MM-DD)`\"\n- When reproducing figures in client-facing deliverables, cite \"`출처: 한국거래소(KRX)`\" plus the retrieval date, and confirm the portal `이용약관` for redistribution constraints.\n\n### Keyless Fallback (⚠️ unofficial — use only when no key is available)\n\nThe KRX 정보데이터시스템 web UI (\u003Chttps:\u002F\u002Fdata.krx.co.kr>) exposes its download datasets through an internal JSON gateway (`POST \u002Fcomm\u002FbldAttendant\u002FgetJsonData.cmd` with a `bld` screen code, e.g. `dbms\u002FMDC\u002FSTAT\u002Fstandard\u002FMDCSTAT01501` for the all-stock quote screen). Open-source libraries (e.g. pykrx) are built on it. ⚠️ Unverified\u002Funofficial: this gateway is not a published API, can change without notice, and is unsuitable for bulk extraction — prefer the official OPEN API for anything reproducible, and treat fallback results as best-effort smoke data only.\n\n### Failure Modes\n\n| Symptom | Cause | Action |\n|---|---|---|\n| `401 Unauthorized Key` envelope | Key missing\u002Finvalid, expired usage period, or service not approved | Check `KRX_API_KEY`; verify 발급내역\u002F이용현황 on the portal; re-apply if the usage period lapsed |\n| `404` on an API path | Wrong category segment or API ID | Copy the API ID from the Service Catalog \u002F terms-ko.json verbatim |\n| Empty\u002Fshort data | Requested period predates the service's coverage start | Check Coverage from in the Service Catalog |\n| Portal spec\u002Fsample page shows \"로그인 필요\" | Spec and sample test require a logged-in portal session | Log in at openapi.krx.co.kr, then reopen the service detail page |\n\n### Notes\n\n- Data source: [KRX Data Marketplace OPEN API](https:\u002F\u002Fopenapi.krx.co.kr\u002Fcontents\u002FOPP\u002FMAIN\u002Fmain\u002Findex.cmd) — service intro (`서비스 소개`), usage guide (`서비스 이용방법`), service list (`서비스 목록`), notices, and FAQ live on the portal.\n- All request paths, the 31 API IDs, the `AUTH_KEY` header name, the `json`\u002F`xml` extension mechanism, and the error envelope above were verified against the live portal and API on 2026-09-11. Per-service request\u002Foutput field names were not verifiable without an approved key — always read them from the service's 개발 명세서.\n- Rate limits\u002Fquotas are not publicly documented; usage is tracked per application in `마이페이지` → `이용현황`.\n- Market-price context pairs well with company fundamentals (`k-dart`) and macro statistics (`k-ecos`); prefer KRX for anything traded on-exchange (quotes, volumes, indices, listings).\n",{"lang":23,"name":5,"owner":24,"scope":25,"status":26,"version":27,"metadata":28,"relates_to":49,"description":59,"lang_reason":60,"l2_propagate":61,"last_reviewed":62,"prerequisites":63},"ko","public-data-analyst","common","active","1.0.3",{"type":29,"locale":30,"source":31,"license":32,"category":33,"triggers":34},"domain","ko-KR","https:\u002F\u002Fopenapi.krx.co.kr","KRX Data Marketplace OPEN API terms (`이용약관`)","market-data",[5,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"\u002Fk-krx","KRX","`한국거래소`","`KRX Open API`","`정보데이터시스템`","`주식 시세`","`코스피`","`코스닥`","`코넥스`","`일별매매정보`","`종목기본정보`","Korean stock market data","KOSPI market data","KOSDAQ market data",[50,53,55,57],{"type":51,"skill":52},"composes_with","k-dart",{"type":51,"skill":54},"k-ecos",{"type":51,"skill":56},"k-kosis",{"type":51,"skill":58},"k-opendata","Queries the KRX (Korea Exchange, `한국거래소`) Data Marketplace OPEN API for Korean exchange market data — KOSPI\u002FKOSDAQ\u002FKONEX stock daily trading, stock master (종목기본정보) data, ETF\u002FETN\u002FELW quotes, index series, bonds, derivatives, commodities, and ESG products. Covers service discovery across the 7-category \u002F 31-service catalog, authentication, request formatting, and error handling. Requires KRX_API_KEY environment variable (issued via openapi.krx.co.kr with administrator approval; no public demo key).\n","proper-noun",true,1789084800000,"KRX_API_KEY environment variable (issued via openapi.krx.co.kr; administrator approval required)","main","b57e612781a79b0e3e60878294ce59c86cc68e5d","templates\u002Fcommon\u002F.hermes\u002Fskills\u002Fk-krx",9,"https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards","https:\u002F\u002Fgithub.com\u002F5throck","Experienced in digital transformation, enterprise IT, startup acceleration, and business strategy. Focused on building practical systems that connect technolo","2026-11-14 21:22:34",{"source":8,"skillName":5,"commands":73,"prompt":83,"zipAvailable":61},[74,77,80],{"tool":75,"command":76},"npx","npx skills add 5throck\u002Fai-workspace-standards --skill k-krx",{"tool":78,"command":79},"bunx","bunx skills add 5throck\u002Fai-workspace-standards --skill k-krx",{"tool":81,"command":82},"pnpm","pnpm dlx skills add 5throck\u002Fai-workspace-standards --skill k-krx","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fcommon\u002F.hermes\u002Fskills\u002Fk-krx\u002FSKILL.md",[85],{"path":86,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fterms-ko.json","REFERENCE","参考文档",6358,"https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fcommon\u002F.hermes\u002Fskills\u002Fk-krx\u002Freferences\u002Fterms-ko.json",[92,100,105,110,115,120],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":99},"01M7BBJDYHJMGTJYSC37JVWY8S","i18n-layout","Text layout and encoding guidance: character encoding (UTF-8, legacy Korean code pages, BOM hazards), line endings, RTL\u002Fbidi handling, and script-specific font selection (Hangul focus). Use when: encoding is corrupted or mojibake appears, an RTL locale must render correctly, fonts must be chosen for a script, or CRLF\u002FBOM issues surface.","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":101,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":99},"01M7BBJ9XHAAS1AVGKZZ841VBZ","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.hermes\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":106,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":99},"01M7BBJ5C3X8TKFKG5R9P9P49W","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.gemini\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":111,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":99},"01M7BBJ1B52X0QMJ2QVBMPJB37","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.codex\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":116,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":99},"01M7BBHX91BW2Q2R276MRX5AW3","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.claude\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":121,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":99},"01M7BBHQWGXPSFRWN1PRC2NMMV","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.agents\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[]]