crypto-price-ticker
v1.0.2
Published
A crypto price price tracker which uses the Coinbase WebSocket API to track prices in real time
Readme
Crypto Price Ticker
Installation
npm install crypto-price-tickerUn-installation
npm un crypto-price-tickerUsage
Initialization
const CoinbaseTicker = require("crypto-price-ticker")
let ticker = new CoinbaseTicker.Ticker();Opening Connection to Coinbase WebSocket API
ticker.openConnection()Closing Connection to Coinbase WebSocket API
ticker.closeConnection()Getting Market Price Data
ticker.bitcoin() // gets Bitcoin market price at that moment
ticker.ethereum() // gets Ethereum market price at that moment