A pro trading chart you can drop into any site.
Candles, 50 indicators, drawing tools and draggable order lines in one small file with no dependencies. The same chart our traders use every day in Questa Pro.
Go ahead, break it.
This is the real widget running on sample data. Add indicators, draw, switch chart types, or drag the stop loss and take profit lines.
Sample data, generated in your browser. Nothing here is a real market.
Everything a trader expects from a chart.
Up and running in a few lines.
- 1Add one file
A script tag, or import the ES module in React, Vue, Svelte or Next.js. The chart sizes itself to its container.
- 2Load history
Pass your past candles to
setData(), from your own backend or the Questa Data API. For long ranges, add a coarser resolution next to the fine one and the chart picks the right one per timeframe. - 3Stream live updates
Call
update()from your WebSocket and the last candle, indicators and countdown follow. - 4Hook up trading
Order lines and trade marks come with events, so dragging a line can move a real order in your backend.
<div id="chart"></div><script src="https://www.questa.one/charts/lib/v1/questa-charts.js?key=YOUR_KEY"></script> <script> const chart = new ChartWidget("#chart", { symbol: "BONK/SOL" }); // your candle history fetch("/api/candles?symbol=BONK/SOL") .then((r) => r.json()) .then((candles) => chart.setData(candles)); // live updates socket.onmessage = (e) => chart.update(JSON.parse(e.data)); // orders your users can drag chart.setPriceLines([ { id: "sl", price: 0.0265, label: "Stop loss", draggable: true }, ]); chart.on("pricelinechange", (line) => moveOrder(line.id, line.price));</script>
New to it? The step by step guide covers history, WebSockets and reconnecting. The reference lists every option, method and event.
License it for your product.
Monthly licenses per product, or the full source on a one-time contract. The small Questa logo stays on every chart.
Website
- All 8 chart types, 50 indicators and 22 drawing tools
- Live streaming, 1 second to 1 day timeframes
- 4 themes and your own colors
- Works on phones with touch drawing
- Saved layouts and PNG screenshots
- Unlimited visitors
- One domain plus a staging domain
- Updates and email support
Professional
- Everything in Website
- Draggable stop loss, take profit and limit lines
- Buy and sell marks on the bars
- Events to move real orders from the chart
- Up to 5 domains or apps
- Help with your integration
- Priority support
Source
- Full readable source
- Build scripts
- Use across your products
Building locally? The chart runs free on localhost while you develop, no key needed. Questa Pro traders already use it for free inside the terminal.