chart2img-api
Generate TradingView chart snapshots with a simple REST API. Any symbol, any timeframe, with indicators. The same engine that powers every TradingCursor analysis.
One Request, One Chart
curl -X POST https://chart2img.tradingcursor.com/v1/tradingview/advanced-chart \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"symbol": "OANDA:XAUUSD",
"interval": "5m",
"theme": "dark",
"style": "candle",
"format": "png",
"width": 1280,
"height": 720,
"studies": [
{ "name": "Relative Strength Index", "forceOverlay": false,
"input": { "length": 14, "smoothingLine": "SMA", "smoothingLength": 14 } },
{ "name": "Moving Average Exponential", "forceOverlay": true,
"input": { "length": 20 } },
{ "name": "Volume", "forceOverlay": false },
{ "name": "Bollinger Bands", "forceOverlay": true,
"input": { "in_0": 20, "in_1": 2 } },
{ "name": "MACD", "forceOverlay": false,
"input": { "in_0": 12, "in_1": 26, "in_2": 9, "in_3": "close" } }
]
}' \
--output chart.pngResponse: chart.png

Full reference for all endpoints and parameters in the API documentation.
What You Get
PNG & JPEG
Raw image bytes back in one request, ready to send or embed
Hosted URLs
Store the snapshot and get a shareable URL with an expiry
Indicators
RSI, EMA, MACD, Bollinger Bands, Volume and more via TradingView studies
1m to 1Y
Every TradingView interval, from 1 minute to yearly candles
Any Exchange
Stocks, crypto, forex and ETFs, with symbol lookup per exchange
Customizable
Dark or light theme, candle style and custom width and height
Built For
- ✓Trading bots posting charts to Discord, Telegram or Slack
- ✓AI agents that analyze chart images
- ✓Market newsletters and automated reports
- ✓Social media posts and price alerts
Get Early Access
chart2img-api is opening to a limited number of developers. Tell us what you're building and we'll be in touch.
