1.0.0 • Published 7 years ago

crypto-coin v1.0.0

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

How to Install

$ npm install crypto-coin

Basic Usage

var Products = require('crypto-coin')`

var BTC = new Products() // default param is ("BTC-USD")
var LTC = new Products("LTC-USD")

console.log(BTC.price) //=> 4000
console.log(LTC.price) //=> 43

API

var BTC = new Products()

BTC.price
BTC.volume
BTC.bid
BTC.ask
BTC.spread

BTC.pairs // Array of all available pairs 
          //=> "BTC-USD", "BTC-EUR", "BTC-GBP", "ETH-BTC", "ETH-EUR","ETH-USD", "LTC-BTC", "LTC-EUR", "LTC-USD"

Note

All operations are done synchronously

Information is relative to GDAX Exchange `