Chart It. Validate It. Ship the Code.

Configure any OHLC query visually, see the real data in the chart, then copy the generated request straight into your trading algorithm, backtesting script, or data pipeline.

Three OHLC chart styles for every market data workflow

Candlestick

Classic OHLC candles with wicks. Best for spotting patterns and price action across any interval

Line Chart

Clean close-price line for a clear view of trend direction without visual noise

Area Chart

Filled area under the price line — ideal for portfolio and longer-horizon views

Live Streaming

Stock charts auto-update via WebSocket — new candles land in real time as the market moves

Flexible Intervals

Seven intervals from 1-minute to daily — dial in the granularity your analysis needs

Date Range Control

Set any from/to date window. Preferences are saved and restored automatically next session

The chart tells you the code is right

Unlike a plain API explorer, the Chart Builder lets you see the OHLC data before you write anything. Adjust the symbol, date window, and interval until the chart looks exactly right — then copy the generated request and integrate it into your application with confidence. Full API reference in the docs.

GBPCHFForex1h · Last 90 days
1.05144
generates
PythoncURLJSGo
Copy
import requests
url = "https://api.tradewatch.io/currencies/GBPCHF/ohlc"
params = {"resolution": 3600, "start": 1766448000, "end": 1774224000}
headers = {"api-key": "tw_live_••••••••"}
response = requests.get(url, params=params, headers=headers)
data = response.json()

The generated OHLC API request reflects exactly what you configured in the chart — symbol, resolution, start, and end timestamps. Copy it once and it runs. No parameter mapping, no docs diving. If you want to dig deeper, the full OHLC endpoint reference is in the documentation.

Backtesting scripts

Pull the exact OHLC window your strategy needs. Validate the data visually in the chart, then feed the same request into your backtest engine.

import pandas as pd
df = pd.DataFrame(data["items"])
# run your strategy on confirmed OHLC data
signals = strategy.backtest(df)
Trading algorithms

Use the 1-minute or 1-hour OHLC stream as the data source for your execution logic. The chart lets you eyeball the signal quality before going live.

# same request → production algo
while True:
candles = fetch_ohlc("GBPCHF", resolution=3600)
if signal(candles):
execute_trade()
Dashboards & apps

Drop the OHLC endpoint into any frontend chart library. The Chart Builder gives you the exact URL and headers your component needs to render the same data.

// React component
const data = await fetch(
"…/currencies/GBPCHF/ohlc?…",
{ headers: { "api-key": key } }
)
<Chart data={data.items} />

Everything you need to visualize and integrate OHLC market data

The TradeWatch Chart Builder combines a query panel, a live OHLC chart, and production-ready API code generation in one resizable workspace. Configure any forex, stock, index, or commodity query, see the real price history, and copy the request directly into your application.

Interactive Candlestick Charts

Render real OHLC data as candlestick, line, or area charts. Pan and zoom across any date range. Color-coded candles make bullish and bearish moves instantly clear.

AAPLStocks1D
Live
Jan 10Jan 17Jan 24Feb 1
O 179.40
H 183.12
L 177.88
C 182.05

Query Panel

Select asset class, symbol, interval, and date range from a structured panel. All options come pre-populated with sensible defaults so you can start charting immediately.

Query Setup
Asset Class
StocksForexIndicesCommodities
Symbol
AAPLApple Inc.
Interval
1m10m30m1h4h12h1D

Four Asset Classes

Chart stocks, forex pairs, global indices, and commodities from a single interface. Switch asset class and the symbol list updates instantly.

Asset Classes
Stocks
AAPLTSLANVDA
+1.24%
Forex
EUR/USDGBP/JPYUSD/CHF
-0.08%
Indices
SPXNDXDAX
+0.67%
Commodities
GOLDCRUDESILVER
+0.91%

The Chart Generates Your Code

Every chart you configure produces a ready-to-copy OHLC API request in 6 languages. The symbol, resolution, start, and end timestamps are already filled in — paste it into your backtesting script, trading algorithm, or data pipeline and it runs immediately.

Python
Run Code
Copy
1import requests
2 
3url = 'https://api.tradewatch.io/stocks/AAPL/ohlc'
4params = {
5'resolution': 1440,
6'start': 1736467200,
7'end': 1738886400
8}
9 
10resp = requests.get(url, params=params, headers={
11'api-key': 'tw_live_••••••••'
12}))

Live WebSocket Streaming

Stock charts stay current via a persistent WebSocket connection. New candles arrive as the market ticks — no manual refresh needed.

WebSocket ConnectedAAPL · 1D
14:32:05182.14+0.08
14:32:10182.09-0.05
14:32:15182.21+0.12
14:32:20182.35+0.14
Next candle in00:39Auto-refresh ON

Chart Style & Panel Layout

Toggle between candle, line, and area views. Drag the divider to give more space to the panel you need — layout is saved between sessions.

Chart Style
RangeJan 10 → Feb 1, 2025

A focused workflow for OHLC market data analysis

Configure your forex, stock, index, or commodity query, visualize the OHLC price history, generate the API request code, and optionally stream live candles via WebSocket.

Query Panel
Asset Class
StocksForexIndicesCommodities
Symbol
AAPLApple Inc.
Interval
1m10m30m1h4h12h1D
Date Range
2025-01-10
2025-02-01

Start building market charts in minutes