A simple module to get screen shots of charts/statistics from websites like tradingview.com
const { Chart , Technical } = require('chart-sc');
let chartImage = await new Chart('BTCUSDT')
.setStyle("dark")
.setTimeFrame("daily")
.save("./chart.png")
console.log(chartImage)
output: (The image path after being created)
./chart.png
let technicalImage = await new Technical('BTC') // Technical class DOSE NOT accept pairs like 'BTCUSD'
.setStyle("dark")
.setTimeFrame("2h") // Technical class DOSE NOT accept '3h' timeframe
.save("./technical.png")
console.log(technicalImage)
output: (The image path after being created)
./technical.png