Package Exports
- crypto-coin
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (crypto-coin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
How to Install
$ npm install crypto-coinBasic 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) //=> 43API
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 `