chart-sc

1.0.4 • Public • Published

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

Package Sidebar

Install

npm i chart-sc

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

21 kB

Total Files

7

Last publish

Collaborators

  • keivan.sf