crypto-coin

1.0.0 • Public • Published

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 `

Readme

Keywords

Package Sidebar

Install

npm i crypto-coin

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • dreamiko