0.1.0 • Published 7 years ago

cryptowatch v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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)
  })
0.1.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago