1.0.4 • Published 2 years ago

chart-sc v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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
1.0.4

2 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago