Fire Charts — free chart library for developers

Fire Charts is a trading chart you can embed in your site or app: plug in your data and get tabs, multiple charts on screen, indicators and drawing tools. Our own Trading section runs on this library.

Source code on GitHub See it live: Trading

Terms

PriceFree, no paid plans
LicenseMIT-0: use it in commercial products, modify and redistribute
Link back to usNot required
Logo on the chartNot required
Application and approvalNot required: download and plug in
DataYours: the library takes candles from your data source
Source codeOpen, hosted on GitHub

What is included

TabsUp to 40 tabs, each with its own layout
Charts on screenOne, two or four, each with its own symbol and interval
IntervalsFrom one minute to one month — whatever your data source provides; history loads as you scroll
Chart typesCandles, hollow candles, bars, line, area, Heikin Ashi
ScalesRegular, logarithmic, percent
Indicators45, up to 40 on one chart, adjustable settings
Drawing23 tools: lines, channels, Fibonacci, shapes, brush, text, measure; magnet, undo and redo
ExportPNG snapshot and candles as CSV
SavingIn the browser; optionally on your server, per user
LanguagesEnglish, Russian, Spanish, French; add your own
FormattingColors via CSS variables: dark and light themes, matched to your site
MobileWorks on touch screens

How to set it up

A data source is two functions: one describes the symbol, the other returns candles. The library does the rest.

<link rel="stylesheet" href="src/fire-charts.css">
<div id="chart" style="height: 600px"></div>

<script src="vendor/klinecharts.min.js"></script>
<script type="module">
  import { createFireChart } from './src/fire-charts.js';

  await createFireChart(document.getElementById('chart'), {
    defaults: ['BTCUSDT'],
    datafeed: {
      resolveSymbol: async (ref) => ({ ref, sym: 'BTC', name: 'Bitcoin', tfs: ['1h', '4h', '1d', '1w'], tf: '1d' }),
      getBars: async ({ symbol, tf, before, limit }) => {
        const rows = await fetch(`/api/candles?s=${symbol.ref}&tf=${tf}&limit=${limit}${before ? `&before=${before}` : ''}`).then((r) => r.json());
        return { bars: rows, more: rows.length === limit }; // [{ timestamp, open, high, low, close, volume }]
      },
    },
  });
</script>

Documentation: all options · Examples: demo and live data · README

What it is built on

Candles, axes, the crosshair and basic lines are drawn by the open-source KLineChart engine (Apache-2.0 license). Fire Charts is our layer on top: tabs and toolbars, 18 indicators, shapes, saving, undo, themes and languages. A copy of the engine ships in the repository with its license — the only condition of its authors, and it does not require a link on your page.

Trading compared with TradingView paid plans →

FAQ

Is Fire Charts really free?

Yes. The MIT-0 license allows any use, including commercial, with no payment and no attribution.

Do I have to link to BotHub FiRe?

No. No link, no logo, no application.

Where does the chart get its quotes?

From your source: an exchange API, a broker or your own server. The library does not supply data; the examples include a ready connection to a public crypto exchange API.

Does it work with React, Vue or a plain page?

Yes: it is plain JavaScript modules with no build step. The library needs a page element with a set height.

Where do I report a bug or suggest a feature?

In the GitHub repository, under Issues.

↑ Top