Skip to content

A simple module to get screen shots of charts/statistics from websites like tradingview.com

Notifications You must be signed in to change notification settings

Keivan-sf/chart-sc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chart-sc

A simple module to get screen shots of charts/statistics from websites like tradingview.com

Usage

Setting up

const { Chart , Technical } = require('chart-sc');

Getting a token's chart image

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

Getting technical summery of a token from TradingView

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

About

A simple module to get screen shots of charts/statistics from websites like tradingview.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published