All Projects → saeipi → Kschart

saeipi / Kschart

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

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Kschart

Hycharts
柱状图、折/曲线图、K线图(主图、交易量图、辅助图), 图与图可以自由组合, 支持分页加载数据 -----> 低内存、低耗电、滑动缩放顺滑
Stars: ✭ 394 (-56.66%)
Mutual labels:  btc, stock, kline, chart
StockView
股票相关控件(分时图、五日分时图、自选股迷你分时图、资金趋势图、盈亏额/盈亏率)- (曲线图、折线图)
Stars: ✭ 87 (-90.43%)
Mutual labels:  chart, stock, kline
HTML-Crypto-Currency-Chart-Snippets
💹 Simple HTML Snippets to create Tickers / Charts of Cryptocurrencies with the TradingView API 💹
Stars: ✭ 89 (-90.21%)
Mutual labels:  chart, btc, eth
Hqchart
HQChart - H5, 微信小程序 沪深/港股/数字货币/期货/美股 K线图(kline),走势图,缩放,拖拽,十字光标,画图工具,截图,筹码图. 分析家语法,通达信语法,(麦语法),第3方数据替换接口
Stars: ✭ 1,126 (+23.87%)
Mutual labels:  stock, kline, chart
Klinechart
📈Lightweight k-line chart that can be highly customized. Zero dependencies. Support mobile.(可高度自定义的轻量级k线图,无第三方依赖,支持移动端)
Stars: ✭ 303 (-66.67%)
Mutual labels:  stock, kline, chart
vickitrix
Trigger crypto trades on GDAX with the Twitter stream
Stars: ✭ 30 (-96.7%)
Mutual labels:  btc, eth
DepthChart
深度图
Stars: ✭ 28 (-96.92%)
Mutual labels:  chart, kline
ChainWallet
一个以研究技术为目地的基础项目,也只有最基本 Bitcoin、Ethereum 、EOS 相关的加密算法。
Stars: ✭ 26 (-97.14%)
Mutual labels:  btc, eth
Optimal Buy Cbpro
Scheduled buying of BTC, ETH, and LTC from Coinbase Pro, optimally!
Stars: ✭ 288 (-68.32%)
Mutual labels:  btc, eth
coinaly
🚀 Fast and easy to use mobile trade interface for cryptocurrencies. Track your trades to the moon and beyond. Currently only for Bittrex.
Stars: ✭ 32 (-96.48%)
Mutual labels:  btc, eth
Pywallet
Dead-simple BIP32 (HD) wallet creation for BTC, BTG, BCH, LTC, DASH, USDT, QTUM and DOGE
Stars: ✭ 286 (-68.54%)
Mutual labels:  btc, eth
Cryptolist
Curated collection of blockchain & cryptocurrency resources.
Stars: ✭ 3,501 (+285.15%)
Mutual labels:  btc, eth
StockChart
StockChart是一款适用于Android的高扩展性、高性能股票图开发库,轻松完成各种子图的组合,还能灵活的定制自己的子图满足复杂的业务需求。
Stars: ✭ 62 (-93.18%)
Mutual labels:  stock, kline
blog
My Tech Blog: about Rust / Golang / Python / Flutter / Blockchain etc.
Stars: ✭ 150 (-83.5%)
Mutual labels:  btc, eth
paper-wallet-generator
Paper Wallet Generator for Bitcoin & Altcoins
Stars: ✭ 35 (-96.15%)
Mutual labels:  btc, eth
gdax bot
gdax_bot - Micro dollar cost averaging for crypto
Stars: ✭ 57 (-93.73%)
Mutual labels:  btc, eth
Coinpricebar
💰 Cryptocurrency prices on MacBook Touch Bar
Stars: ✭ 290 (-68.1%)
Mutual labels:  btc, eth
Ccxt
A JavaScript / Python / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges
Stars: ✭ 22,501 (+2375.36%)
Mutual labels:  btc, eth
Okklineswift
Draw the K-Line by Swift, support iOS & macOS
Stars: ✭ 406 (-55.34%)
Mutual labels:  stock, kline
QT StockFigure
QT显示股票分时线
Stars: ✭ 16 (-98.24%)
Mutual labels:  stock, kline

k线图/kline/kchart,已经集成MA/EMA/MACD/KDJ/BOLL/RSI/WR/AVG等指标,新增指标及其方便。适用于股票/区块链交易所等种类App。Swift5编写,CPU/内存占用率极低,60FPS稳定运行。示例集成websocket,并接入币安数据(需VPN)。项目采用CAShapelayer+UIBezierPath进行图形绘制,采用CATextLayer进行文本绘制。

KSChart 效果图

分时图 指标菜单 蜡烛图 选中单个蜡烛图

500多条K线数据,真机示例内存占用为11.8M(其中KSChart占用3M),机型不同CPU占用差异会比较大,老设备在滑动时帧数会略有下降

cpu占用率 memory占用率

如果觉得好用就打个赏呗

Alipay WeChatPay

开发环境

  • Xcode 11.0+
  • Swift 5.1+

示例

请参考KSKChartView.swift

class KSKChartView: KSBaseView {
    
    lazy var klineData = [KSChartItem]()
    lazy var configure: KSChartConfigure = KSChartConfigure.init()
    
    weak var delegate: KSKChartViewDelegate?
    
    lazy var chartView: KSKLineChartView = {
        let chartView         = KSKLineChartView(frame: self.bounds)
        let style             = configure.loadConfigure()
        chartView.style       = style
        chartView.delegate    = self
        self.addSubview(chartView)
        return chartView
    }()
    ......
}

版本更新说明

5.1.8 稳定版
1、进一步优化CPU和内存占用率,CPU使用率降低20%以上;
2、精简代码KSKLineChartView代码;
3、分层管理k线视图的绘制内容;
4、重构边框与Y轴数值绘制代码;
5、修复已知bug。

5.1.9
1、新增WR/AVG指标
2、精简代码
3、优化API

5.1.10
1、优化时间线逻辑
2、精简代理方法
3、对外API统一风格

下个版本

1、重新添加最大最小值的显示

反馈/技术交流群:902071358

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].