# sevtin/KSChart

k线图/kline/kchart，已经集成MA/EMA/MACD/KDJ/BOLL/RSI/WR/AVG等指标，新增指标及其方便。适用于股票/区块链交易所等种类App。Swift5编写，CPU/内存占用率极低，60FPS稳定运行。示例集成websocket，并接入币安数据（需VPN）。

Repository: https://github.com/sevtin/KSChart
Canonical: https://ross.abutalabs.com/products/kschart
Language: Swift
License: MIT
License Family: permissive
Topics: kline, share, stock, kchart, candle, swift, btc, eth, ios, macd, boll, kdj, chart
Last push: 2025-06-11T00:53:44+00:00

## Health v2 (maintenance only)
Score: 44/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 26, release rhythm 35, longevity 100
- inputs: {"age_days": 2473, "days_push": 449, "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 1088, forks 132 (observed 2026-08-28T04:03:32.481915+00:00)

## What it is
A Swift library for rendering candlestick (K-line) charts on iOS, with built-in technical indicators like MA, EMA, MACD, KDJ, BOLL, RSI, WR, and AVG. It uses CAShapeLayer and CATextLayer for efficient drawing, achieving stable 60FPS with low CPU and memory usage, and is suited for stock and cryptocurrency exchange apps.

## Use cases
- render candlestick charts in an iOS stock trading app
- display kline charts with MACD and KDJ indicators
- build a crypto exchange app with real-time Binance data over websocket
- add custom technical indicators to a candlestick chart
- show time-share (intraday) charts with low memory footprint

## When to choose
- you need a native iOS Swift candlestick chart library with common technical indicators built in
- performance matters - you need 60FPS scrolling with low CPU/memory usage
- you're building a stock or cryptocurrency trading app on iOS

## When to avoid
- you need charts on Android or cross-platform
- you need general-purpose charts (bar, pie, line) rather than financial candlestick charts
- your project is not written in Swift or targets older iOS toolchains

## Facets
- artifact type: library
- maturity: stable
- function: data-visualization, charts, websocket
- domain: fintech, mobile-development, frontend
- platform: -
- tags: kline, candlestick-chart, stock-chart, trading, swift, technical-indicators, macd, boll, kdj, rsi, cryptocurrency, ios

## Member repositories
- sevtin/KSChart (main) score 44

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:32.481915+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-30T06:49:23.102886+00:00, confidence not recorded.
  - readme: https://github.com/sevtin/KSChart (fetched 2026-08-28T04:03:32.481915+00:00, sha 82d09eb47752)
- Data as of 2026-08-30T08:39:29.467469+00:00.
