RepositoryTypeScriptVNViệt Nam
bonguynvan

bonguynvan/tradecanvas

TradeCanvas, the open-source chart library for trading apps: candlesticks to Renko, 134 indicators, 76 drawing tools and a full trading UI (orders on the chart, replay, depth). MIT, zero dependencies, Canvas 2D or WebGL; React, Vue, Svelte, TypeScript.

115sao
50fork
1issue
23lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: drawing-tools

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: candlestick-chart

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: stock-chart

#1 Repository của tuần

TradeCanvas, the chart engine for trading apps

npm version npm downloads CI status pkg.pr.new previews No third-party dependencies TypeScript MIT license GitHub stars GitHub Sponsors

Live demo · Docs · Examples · System audit · Changelog

English · Tiếng Việt · 简体中文 · 日本語 · 한국어 · Español

A complete trading chart for the web. Candlesticks to Renko, 134 indicators, 73 drawing tools, live feeds and orders on the chart, on Canvas 2D or WebGL, with no third-party dependencies. Use the full ChartWidget, or build your own interface on the headless Chart, in TypeScript, React, Vue or Svelte.

ChartWidget on a live market: EMA 21 and 55 and RSI, the crosshair, and a trend line drawn with the mouse

Highlights

  • 18 chart types, 134 indicators, 73 drawing tools, indicators on indicators, alerts on lines, undo and redo.
  • Trading on the chart: positions with live P&L, orders and stops you drag, a paper broker or your own.
  • Live data from Binance, Bybit, Coinbase, Kraken and Upbit, or your own feed in about twenty lines.
  • Fast: a million bars panned at 60 fps with WebGL; a live tick in about a microsecond; ten minutes of 30,000 trades a second on a million bars with no memory growth (soak).
  • A workspace: grids of charts, layouts, bar replay, backtesting.
  • Yours to shape: themes, five looks, 133 switches, plugins; 30 languages; phones and apps.
Dragging the take-profit and stop-loss of a long position; its P&L updates as the price moves
Orders you drag: stops, targets and limits move with the mouse.
Bar replay playing a market back with Bollinger Bands
Bar replay: play a market back, then trade it on paper.
Four charts in a two-by-two grid on different intervals, the crosshair following across all of them
Grids: up to six charts, linked by symbol, interval, crosshair or time.
One chart switching between the Print, Terminal, Capsule and Studio looks, dark and light
Your look: Print (paper and ink, kept to the golden ratio), Studio, Terminal, Capsule, Desk (a desktop trading window), light or dark, or your own tokens.
The widget on a phone: a finger pans the chart and draws a trend line
On phones: a finger pans, zooms, draws and drags orders, and the widget lays itself out for a small screen. It also runs in a WebView, React Native, Capacitor or Tauri.

Quick start

npm install @tradecanvas/chart
import { ChartWidget } from '@tradecanvas/chart/widget'
import { BinanceAdapter } from '@tradecanvas/chart'

new ChartWidget(document.getElementById('chart')!, {
  symbol: 'BTCUSDT',
  timeframe: '5m',
  theme: 'dark',
  adapter: new BinanceAdapter(), // live data, no API key
  trading: true,
})

The headless Chart takes your own bars (chart.setData(bars)) and leaves the interface to you. A source of your own is a DataFeed of two methods (getBars, subscribeBars), given as feed wherever an adapter goes; one feed serves any number of charts. For React, Vue and Svelte, @tradecanvas/react, /vue and /svelte wrap it in a component with the same props.

Documentation

Getting started · API · Indicators · Drawing tools · Realtime · Trading · Styling · Frameworks · Plugins · Phones and apps · Performance

The docs are in English, Tiếng Việt, 简体中文, 日本語, 한국어 and Español. Measurements, limits and how it is tested are on the system audit.

AI coding tools

The agent skill in skills/tradecanvas teaches coding agents the API, with examples that CI type-checks. In Claude Code:

/plugin marketplace add bonguynvan/tradecanvas
/plugin install tradecanvas@tradecanvas

Other agents (Cursor, Codex, Copilot and more): npx skills add bonguynvan/tradecanvas. Or ask any agent to set it all up, the package, the skill and the MCP server, asking you the scope first:

Install TradeCanvas for me by reading https://tradecanvas.dev/llms.txt

Without a skill, llms.txt and llms-full.txt give an assistant the docs in one file. Changing TradeCanvas itself with an agent? AGENTS.md holds the repo's rules.

The MCP server @tradecanvas/mcp looks up indicators, drawing tools, options, feature switches and style keys in the library's own catalog, and checks an options object before it is used (set it up in other clients):

claude mcp add tradecanvas -- npx -y @tradecanvas/mcp

On Windows outside WSL: claude mcp add tradecanvas -- cmd /c npx -y @tradecanvas/mcp. In Git Bash, which runs the ! commands of Claude Code on Windows, write //c: Git Bash turns /c into a path.

More

MIT

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryTypeScript
ChartGPU/ChartGPU

Beautiful, open source, WebGPU-based charting library

3.3k
Oct 18, 2026
RepositoryTypeScript
dylanpersonguy/OpenCharts

The Open Source TradingView Alternative — Free, self-hosted charting using lightweight TV and custom built in library of trading indicators, tools, etc.

382
Nov 28, 2026
RepositoryPython
jrmeier/fast-trade

low code backtesting library utilizing polars and technical analysis indicators

607
Oct 16, 2026
RepositorySvelte
trash-and-fire/svelte-lightweight-charts

Svelte wrapper for financial lightweight charts

118
Oct 17, 2023
RepositoryTypeScript
LuxAlgo/PineTS

Run Pine Script® anywhere. PineTS is LuxAlgo's open-source Pine Script® runtime for Node.js and the browser.

1.0k
Nov 13, 2026
RepositoryTypeScript
cinar/indicatorts

High-performance technical analysis indicators and backtesting framework in TypeScript. Zero dependencies. ✨ See how! 👀

481
Nov 24, 2026
RepositoryTypeScript
deepentropy/lightweight-charts-indicators

1,713 technical analysis indicators for the lightweight-charts library: 117 standard, 1,551 community ports and 45 candlestick patterns, with a renderer for plots, drawings and tables

352
Dec 1, 2026
RepositoryTypeScript
marketcalls/openalgo-charts

Production-grade charts built for brokers, exchanges, trading platforms, and financial portals. Bring your own market data, plug it in, and deliver a complete charting experience without building the charting stack from scratch. Open source. Data-agnostic. Ready to integrate.

235
Nov 24, 2026
RepositoryTypeScript
rubenafo/trendyways

Simple javascript library containing methods for financial technical analysis

166
Sep 13, 2026