Skip to content

amanvir/cryptowatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cryptowatch

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

About

💱 API wrapper for crypto currencies

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published