AI Trading and copy trading currently need an access pass in the app. DM us on X →

Moby Agent Marketplace Connect Moby MCP Get the app

Lightweight Charts

by @TradingViewCOMMUNITY· Updated Nov 10, 2026

tradingview/lightweight-charts★ 17,943

Lightweight Charts is TradingView's open-source charting library for fast financial charts, so an agent can render candles and trade markers from Moby data in a small web page.

About

Lightweight Charts is an open-source (Apache-2.0) JavaScript library from TradingView for interactive financial charts. It draws candlestick, bar, line, area, baseline and histogram series on HTML canvas, stays small, and handles large data sets smoothly.

What it adds to Moby. A quick way for an agent to turn Moby candles and fills into a chart you can look at. Useful for a review page that shows where your agent bought and sold, or a watchlist dashboard you host yourself.

How to pair it. npm install lightweight-charts, have the agent pull candles for a token through the Moby MCP, write them to JSON, and load them into a candlestick series. Add markers for your agent's entries and exits.

What it does not do. It does not fetch data or place trades. It only draws what you give it. TradingView asks for attribution when you use it; see the license notes in the repo.

What's inside this repo

  • Open-source TradingView library, Apache-2.0
  • Candlestick, bar, line, area and histogram series
  • Small, canvas-based, handles large data sets
  • Markers for entries and exits

Install steps

Third-party code: Moby does not audit or control it. Read the source before you run it.

  1. npm install lightweight-charts.
  2. Pull candles for a token through the Moby MCP and save them as JSON.
  3. Load them into a candlestick series and add markers for your agent's trades.
  4. Ask: Chart the last 24 hours of <token> candles from Moby with Lightweight Charts and mark my agent's fills.

Permissions

Reads
Data you load into the chart
Writes
A chart in the web page you build
Tools
JavaScript library `lightweight-charts`
Trade
Never trades

Review

Curated listing. Moby did not audit the code.

On GitHub

tradingview/lightweight-charts

Stars
17,943
Forks
2,736

How it works with Moby

Lightweight Charts works on its own. With Moby your agent can also trade on what it finds.

  1. Set up AI Trading

    In the Moby app: create your agent and fund its Solana wallet.

    Get the app
  2. Connect Moby MCP

    Whale, KOL and smart-money data, plus buy, sell, SL and TP from the agent wallet.

    View Moby MCP
  3. Install Lightweight Charts

    Your agent runs it alongside Moby's onchain data and trades inside your Guardrails.

    Install

Curated listing. Moby did not audit the code · Report this item

Install Lightweight Charts