krxon-0.1.0 is not a library.
krxon
CLI tool for the KRX (Korea Exchange) Open API.
Features
- fetch - Query KRX market data from the command line
- generate - Generate Python and TypeScript SDK clients from the API spec
Installation
Cargo (Rust)
Python SDK (PyPI)
TypeScript SDK (npm)
From source
Getting Started
Prerequisites
- A KRX Open API key from openapi.krx.co.kr
Setup
# Store your API key
# Or set via environment variable
Usage
Fetch Index Data
Fetch Stock Data
# Filter by ISIN code
Fetch ETP Data
# Filter by ISIN code
Fetch Derivatives Data
# Futures
# Options
# Table output
Generate SDK Clients
# Generate Python SDK
# Generate TypeScript SDK
Common Options
--date(required): Base date in YYYYMMDD format--key: API key (overridesKRX_API_KEYenv var)--output:json(default) ortable
SDK Usage
Python
=
=
TypeScript
import { KrxClient } from "@krxon/krx";
const client = new KrxClient({ apiKey: "your_key" });
const records = await client.getKospiStockDaily("20250301");
records.forEach((r) => console.log(r.ISU_NM, r.TDD_CLSPRC));
Project Structure
See AGENT.md for the full project structure and conventions.
License
MIT