# Vespa314/chan.py

开放式的缠论python实现框架，支持形态学/动力学买卖点分析计算，多级别K线联立，区间套策略，可视化绘图，多种数据接入，策略开发，交易系统对接；

Repository: https://github.com/Vespa314/chan.py
Canonical: https://ross.abutalabs.com/products/chanpy
Language: Python
License: MIT
License Family: permissive
Topics: python, chanlun, automl, machinelearning, plot, quant, stock, stragety
Last push: 2026-06-25T08:32:52+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 89, release rhythm 35, longevity 100
- inputs: {"age_days": 1735, "days_push": 69, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2039, forks 787 (observed 2026-08-28T04:06:08.391992+00:00)

## What it is
An open-source Python framework implementing Chanlun (缠论) technical analysis for stock trading, computing fractals, strokes, segments, pivots, and buy/sell points with multi-level K-line analysis. It supports configurable indicators, multiple data sources, visualization, strategy development, and trading system integration.

## Use cases
- compute chanlun buy and sell points from stock k-line data
- analyze multi-timeframe candlestick charts with chan theory
- backtest a chanlun trading strategy in python
- plot strokes segments and pivots on stock charts
- fetch stock data from futu akshare or baostock for technical analysis
- build a quantitative trading signal framework

## When to choose
- you want a configurable, extensible chanlun calculation framework in Python
- you need multi-level K-line analysis with interval套 (nested interval) buy/sell point strategies
- you want built-in charting and multiple data source adapters

## When to avoid
- you need the full strategy, automl, and live trading engine features - the public version only includes static calculation
- you are not interested in chanlun-specific technical analysis
- you use Python below 3.11

## Facets
- artifact type: library
- maturity: active
- function: machine-learning, data-visualization, sdk, developer-tools
- domain: fintech, data-science
- platform: python, cli
- tags: chanlun, quant, stock-analysis, technical-analysis, trading-strategy, k-line, matplotlib, akshare, futu, baostock, quantitative-trading, algorithms

## Member repositories
- Vespa314/chan.py (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:08.391992+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:59:11.711852+00:00, confidence not recorded.
  - readme: https://github.com/Vespa314/chan.py (fetched 2026-08-28T04:06:08.391992+00:00, sha ec6ca853679d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
