Skip to main content

krx-signals

Rules-based technical analysis signals for Korean equities (KOSPI / KOSDAQ).

한국 주식(KOSPI·KOSDAQ) 데이터를 위한 규칙 기반 기술적 분석 시그널 라이브러리입니다.

Why this exists

Most technical-analysis libraries are market-agnostic. krx-signals is opinionated for Korean equities: it pairs pure-pandas indicators (no TA-Lib dependency) with a small, explainable rules engine — moving-average crosses, RSI zones, MACD flips — verified against trading volume. Every signal is a technical observation, never a recommendation.

기술적 분석 라이브러리 대부분은 시장에 구애받지 않게 설계되어 있습니다. krx-signals는 한국 주식에 특화되어 있습니다: TA-Lib 없이 순수 pandas로 동작하는 지표 + 이동평균 크로스·RSI 구간·MACD 전환을 거래량 검증과 결합한 작은 규칙 엔진을 제공합니다. 모든 시그널은 기술적 관찰이며, 매수·매도 추천이 아닙니다.

Disclaimer / 면책: This library is for research and education only. It is not investment advice. 모든 출력은 리서치·교육 목적이며 투자 조언이 아닙니다.

Install

pip install krx-signals
# with KRX data fetching (pykrx)
pip install "krx-signals[krx]"

Quickstart

import pandas as pd
from krx_signals import generate_signals, describe_signals
from krx_signals.data import fetch_ohlcv

# 1) OHLCV 가져오기 (pykrx 필요)
df = fetch_ohlcv("005930", "20250101", "20261022", market="KOSPI")

# 2) 시그널 생성
sig = generate_signals(df)

# 3) 최근 발동 이벤트를 쉬운 말로 설명
for line in describe_signals(sig, lang="ko"):
    print(line)

generate_signals adds indicator columns (ma_fast, ma_slow, rsi, macd, macd_signal, macd_hist, volume_ma), boolean event flags (golden_cross, death_cross, rsi_overbought, rsi_oversold, macd_bullish, macd_bearish, volume_surge), and two volume-verified composites: bullish_verified (golden cross + volume surge) and bearish_verified (death cross + volume surge).

Indicators

Function Description
sma / ema Simple / exponential moving average
rsi Wilder's RSI (0–100)
macd MACD line, signal line, histogram
bollinger_bands Upper / middle / lower bands
atr Average True Range (Wilder's)
obv On-Balance Volume

Maintainer workflow

This project is maintained with an AI-assisted workflow (see docs/maintainer-workflow.md): automated PR review, release-note drafting, and issue triage. See AGENTS.md for agent instructions and CONTRIBUTING.md to contribute.

License

MIT — see LICENSE.

Metadata

Release files for krx-signals 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for krx-signals 0.1.0
File Size Uploaded Provenance Actions
krx_signals-0.1.0.tar.gz 10.9 kB With provenance Details for krx_signals-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for krx-signals 0.1.0
File Interpreter ABI Platform Actions
krx_signals-0.1.0-py3-none-any.whl Python 3 none any Details for krx_signals-0.1.0-py3-none-any.whl

Total release size: 20.0 kB

Release files / krx_signals-0.1.0.tar.gz

Download URL krx_signals-0.1.0.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
898f75585e452172d8b03ec2de18669cb674e136f52fb8c910f2cfcc619d8d35
BLAKE2b-256 checksum
How to use checksums
ada6ba16962aa73e01966a8e8fd111879fac3aff3811f2af7810ba0f01df20b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / krx_signals-0.1.0-py3-none-any.whl

Download URL krx_signals-0.1.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3af720217bf9c8515a2d4af536ab346a5bc111b301e96c73e2dc04587955854
BLAKE2b-256 checksum
How to use checksums
c17691d97c7835e58f3fff50e75c9956eb9c1e3e690c7fe6b03bd9317df7c17c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Security for krx-signals 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for krx_signals-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page