KOL and smart-money wallets

Open-source charting engine

KOL and smart-money wallets

One-minute candles with the largest trades of 16 tracked wallets as avatars: influencers (KOL) with a thin ring, smart money with a thick one, green for buys and red for sells. Each bar side shows three avatars and folds the rest into a "+k" badge; hovering an avatar or a badge shows who traded and how much (markerHover). The wallets are synthetic.

Apache-2.0

KOL and smart-money wallets: Memecoins & wallets example

registerIcon · markerStackLimit · markerHover · addLayer

Code
import { FerroChart } from '@ferrochart/core';

const canvas = document.querySelector('canvas');
// Market data: the synthetic FerroChart demo API. Use your own feed.
const chart = await FerroChart.create(canvas, { theme: 'dark' });
const to = Math.floor(Date.now() / 60_000) * 60_000; // the last whole minute
const from = to - 50 * 60_000;
const range = 'symbol=MEME&from=' + from + '&to=' + to;
const bars = await fetch('/api/bars?interval=1m&' + range).then((r) => r.json());
const trades = await fetch('/api/trades?' + range).then((r) => r.json());
// Tracked wallets: influencers (KOL) and wallets with a good record (smart money).
const wallets = [
  ['moonboy', 'KOL'], ['gm_capital', 'Smart'], ['ape_lord', 'KOL'], ['sigma.sol', 'Smart'],
  ['wenlambo', 'KOL'], ['quiet_whale', 'Smart'], ['degen_daily', 'KOL'], ['early_bird', 'Smart'],
  ['chart_wizard', 'KOL'], ['delta_fund', 'Smart'], ['pump_watch', 'KOL'], ['cold_wallet', 'Smart'],
  ['meme_queen', 'KOL'], ['alpha_desk', 'Smart'], ['ngmi_labs', 'KOL'], ['flow_reader', 'Smart'],
].map(([name, kind], i) => ({ name, kind, icon: 'w' + (i + 1) }));
await Promise.all(wallets.map((w, i) => chart.registerIcon(w.icon, '/avatars/w' + String(i + 1).padStart(2, '0') + '.png')));
// The 500 largest trades (about ten a minute), each attributed to a tracked wallet (synthetic data).
const fills = trades.time
  .map((time, i) => ({ time, usd: trades.price[i] * trades.size[i], buy: trades.side[i] > 0, wallet: wallets[(i * 7 + 3) % wallets.length] }))
  .sort((a, b) => b.usd - a.usd)
  .slice(0, 500)
  .sort((a, b) => a.time - b.time); // markers() is sorted by time: indices match
const candles = chart.addCandlestickSeries({ markerStackLimit: 4 }); // 3 avatars a side, then "+k"
candles.setData(bars);
candles.setMarkers(fills.map((f) => ({
  time: f.time, position: f.buy ? 'belowBar' : 'aboveBar', icon: f.wallet.icon, size: 18,
  color: '#1b1f2a', border: f.buy ? '#2ee6b6' : '#ff5d73', borderWidth: f.wallet.kind === 'Smart' ? 3 : 1.5,
})));
// A tooltip for the avatar or "+k" badge under the pointer.
const usd = (v) => (v >= 1e6 ? '$' + (v / 1e6).toFixed(1) + 'M' : '$' + (v / 1e3).toFixed(0) + 'k');
const line = (f) => (f.buy ? 'buy ' : 'sell ') + usd(f.usd) + '  ' + f.wallet.name + ' (' + f.wallet.kind + ')';
let hover = null;
const tip = chart.addLayer({
  pane: 0,
  position: 'overlay',
  build(ctx) {
    if (!hover) return [];
    const rows = hover.overflow > 0
      ? [hover.overflow + ' more on this bar', ...fills.slice(hover.index, hover.index + hover.overflow).map(line)]
      : [line(fills[hover.index])];
    const width = 16 + Math.max(...rows.map((r) => ctx.textWidth(r, 11)));
    const x = Math.min(hover.x + hover.size / 2 + 8, ctx.rect.x + ctx.rect.width - width);
    const y = Math.max(ctx.rect.y, hover.y - 8 - rows.length * 8);
    return [
      { type: 'rect', x, y, width, height: 10 + rows.length * 16, color: 'rgba(17, 20, 28, 0.92)' },
      ...rows.map((text, i) => ({ type: 'text', x: x + 8, y: y + 5 + i * 16, text, size: 11, color: i === 0 && hover.overflow ? '#8a93a6' : '#e6ebf5' })),
    ];
  },
});
chart.on('markerHover', (e) => { hover = e; chart.invalidateLayer(tip); });
chart.setBarSpacing(24);
chart.scrollToRealtime();

Built for tick-level data.

Apple M4 Max · Chrome + WebGPU

Load 1 million bars and draw the first frame in the browser

WASM · WebGPU

Load 10 million bars natively, level-of-detail pyramid included

native Rust

Heap allocations per frame while panning, zooming and streaming

steady state

WebAssembly package size, gzip

all features

Browser figures: Google Chrome with WebGPU; the 10 million bar load is native Rust. Bars show each figure against its target: 300 ms for a load, no allocations, 1.5 MB for the package.

Examples

313 examples
across 20 use cases.

Each example is a live chart rendered by FerroChart in your browser, with its source code alongside. All data is synthetic.

Bar replay
Real-time stream
Candlesticks + volume
01

Price action

25 examples →

Candles, bars and lines for any market, streaming in real time.

Depth heatmap
Delta footprint
Footprint
04

Order flow

20 examples →

Footprint, depth heatmap and market profile, on a compute-shader path.

Implied volatility · basis
Long/short ratio · CVD
Funding · open interest · liquidations
06

Crypto derivatives

15 examples →

Funding, open interest, liquidations and basis in panes under price.

Risk reversal · butterfly
Expected move to expiry
Implied vs realised vol · IV rank
12

Options & volatility

18 examples →

Implied against realised, skew, expected moves and dealer exposure in time.

Joint drawdowns
Underwater curve · worst drawdown
Equity curve · drawdown
16

Portfolio, risk & quant

24 examples →

Equity curves, drawdowns, rolling statistics, factor research and risk checks.

Grouped columns
Stacked columns
100% stacked area
19

Custom series & plugins

11 examples →

Stacked, grouped, box and brushed series: layer plugins on the same GPU frame.

Browse all 20 use cases

Price action

Bar types & transforms

Technical analysis

Order flow

Execution & trade review

Crypto derivatives

On-chain

DeFi & AMMs

Memecoins & wallets

Equities & fundamentals

China A-shares

Options & volatility

Rates, FX & macro

Futures & commodities

Funds & ETFs

Portfolio, risk & quant

Private markets & personal finance

Prediction markets

Custom series & plugins

Labs & flagships

Features

Designed for market data.

01

Cross-platform rendering

A single Rust core with WebGPU and WebGL2 backends in the browser, wgpu on Metal, Vulkan and DirectX 12 in native applications, and a CPU renderer for servers. Golden-image tests keep the backends consistent.

02

Performance independent of data size

Bar data stays on the GPU and coordinate transforms run in shaders, so panning and zooming update only a few uniforms. A level-of-detail pyramid keeps tens of millions of bars responsive.

03

30 built-in indicators

Moving averages, channels and oscillators from SMA to Ichimoku. Values are updated incrementally on each tick and tested against reference data.

04

29 drawing tools

Trend lines, channels, Fibonacci tools, pitchforks, Gann fans, patterns, Elliott waves, ranges, positions and text, with undo and redo. Drawings and chart state serialize to JSON.

05

Synchronized charts

Sync groups link the crosshair and the visible range across multiple charts.

06

Extensible

Plugin interfaces for custom series, layers and drawing tools. Bindings for JavaScript, Rust and Python, and a C ABI for C#, C++, Qt and Flutter.

Get started

One API in every language.

Every binding follows the same model: create a chart, add series, set data and add indicators. Data is passed as columns, from typed arrays, Rust slices or DataFrames.

  • JavaScript & TypeScript
  • Rust
  • Python & Jupyter
  • C, C#, C++
Read the documentation
main.js
$ npm install @ferrochart/core
import { FerroChart } from '@ferrochart/core';

const chart = await FerroChart.create(canvas, { theme: 'dark' });
const candles = chart.addCandlestickSeries();
chart.addVolumeSeries(candles);
candles.setData(bars); // [{ time, open, high, low, close, volume }, ...]
chart.addIndicator(candles, 'ema', { n: 20 });
chart.addIndicator(candles, 'macd'); // in a new pane

FerroChart

Every market.
Every screen.
One engine.

Open source under Apache-2.0, from the browser to the trading desk.