cryptowatch

0.1.0 • Public • Published

cryptowatch CircleCI

API for interacting with price of bitcoin/altcoins from cryptowa.ch.

Install

$ npm install --save cryptowatch

Usage

To get the price from coinbase for BTC in USD.

import Cryptowatch from 'cryptowatch'

const cw = new Cryptowatch()

cw.price('btc', 'usd', 'coinbase')
  .then(p => console.log(p.price))
  .catch(err => console.log(err))

Alternatively, in ES5

var cryptowatch = require('cryptowatch')

cw = new cryptowatch()

cw.price('btc', 'usd', 'coinbase')
  .then(function(p) {
    console.log(p.price)
  })

Readme

Keywords

none

Package Sidebar

Install

npm i cryptowatch

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • amanvir